android - How to debug app when it's killed -


my app has bug on activities: when restarts (when it's killed , opened again multitasker), crashes. assume has singleton, i'm not sure. i'd pinpoint problem, can't debug since debugger stops when kill application (i'm using adb shell kill <package-name>).

does know how can debug problem? (or give me hint problem might matter)

i use ddms (dalvik debug monitor server (ddms) capture stack trace, etc.. after kill , restart our app.

(fyi: installed along rest of android toolset)

while not going allow debug app via vs/xs, can pin area of app cause. there add logging around trouble area (i.e. old-fashion printf style debugging)

enter image description here

http://developer.android.com/tools/debugging/ddms.html

to launch visual studio:

enter image description here

from xamarin studio:

enter image description here


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -