Inserting breakpoints on Eclipse for an Android program

前端 未结 5 2213
故里飘歌
故里飘歌 2021-02-19 12:14

I\'m using Eclipse 3.3 and Android 1.6. I installed DDMS on my Eclipse and tried to insert breakpoints as in tutorial https://www.ibm.com/developerworks/library/os-ecbug/ . Howe

相关标签:
5条回答
  • 2021-02-19 12:27

    If the breakpoint symbol/circle has a line going through it, it means you have the "skip all breakpoints" option selected. You can de-select it in the Debug view, under the "Breakpoints" section/box.

    0 讨论(0)
  • 2021-02-19 12:37

    If you're trying to debug a service or widget you'll need to start an activity in order for the debugger to attach properly.

    0 讨论(0)
  • 2021-02-19 12:38

    My breakpoints haven't been working either. In my debug configuration on the Android tab, I had the launch action set to "Do Nothing". When I changed that to instead launch directly into an activity, my breakpoints started working.

    0 讨论(0)
  • 2021-02-19 12:43

    To add to Amarghosh answer's, check also your JDK version.

    There is a bug with JDK6_u14 et u15, which made your breakpoints "invisible" (the program would not stop during a debug session)
    Fixed in the latest one JDK6u16.

    0 讨论(0)
  • 2021-02-19 12:45

    May be this is the problem:

    However, as I run my project

    Debug the project instead of running it. Select 'Debug' from the 'Run' menu or hit F11.

    0 讨论(0)
提交回复
热议问题