My app has a bug on certain activities: when it restarts (when it's killed and then opened again with multitasker), it crashes. I assume it has something to do with my singleton, but I'm not sure. I'd like to pinpoint the problem, but I can't debug since the debugger stops when I kill the application (I'm using
adb shell am kill <package-name>
I would use DDMS (Dalvik Debug Monitor Server (DDMS) to capture the stack trace, etc.. after your kill and restart our app.
(FYI: It is already installed along with the rest of the Android toolset)
While it is not going to allow you to debug you app via VS/XS, it can help you pin the area of your app that is the cause. From there I would add logging around the trouble area (i.e. the old-fashion
printf style debugging)
To launch from Visual Studio:
From Xamarin Studio: