Android with jdb confusion using waitForDebugger

前端 未结 3 513
臣服心动
臣服心动 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:15

    jdb has a config file : ~/.jdrbc in Linux. e.g in mine I have:

    stop in net.richardriley.myproj.myact.onCreate
    

    The in your device emulator dev settings you can set "wait for debugger" for the application class in question. Run the application, start the debugger and it will break.

提交回复
热议问题