I'm trying to develop a custom web template to use with SharePoint Online. I created an empty web online and saved it as a template (without content). I then loaded that WSP into Visual Studio and made some changes. The altered WSP is uploaded to the sandbox solution store and activates. So far, so good.
But now upon deployment, something goes wrong. Ok, probably made a mistake somewhere: but where? The error is not really informing and there's no way to look in the logs for SharePoint online (at least not that I know of).
So I then tried deploying the same solution to an on premise SharePoint environment to be able to debug things. But apparantly, SharePoint Online activates a bunch of features which are unavailable in an onpremise installation. They're included in the template, so when I now try to create a site in my onpremise environment, it's complaining about missing features.
I'm getting a bit lost here. What's a good way to debug these things?