Android with jdb confusion using waitForDebugger

前端 未结 3 493
臣服心动
臣服心动 2020-12-18 12:47

I\'d like to debug my Android application on my device (Nexus One - not the emulator) using the command line.

I\'m confused at how to set a breakpoint using jdb in c

3条回答
  •  囚心锁ツ
    2020-12-18 13:09

    I've tried with both solutions (the one from fadden and the one from Richard Riley), but none of them worked. The app launched in the emulator get unblocked as soon as a jdb is attached to the debug port (8700 via Dalvik) but then it runs on its own, without synchronizing with jdb at all. Introducing a waiting loop does not change things, and breakpoint commands in .jdbrc have no effect. Invariably, the jdb answer is "Deferring breakpoint etc. etc. It will be set after the class is loaded.", as the app was not running; but, if you type "run" the answer is "Nothing suspended.", as the app was already running...

提交回复
热议问题