开发者

breakpoint in activity associated with statusbar notification is ignored

开发者 https://www.devze.com 2023-02-27 01:29 出处:网络
i am new to android development but have used eclipse extensively. i\'m running some android application in the eclipse debugger in the emulator. i have no problem stepping through the code and contro

i am new to android development but have used eclipse extensively.

i'm running some android application in the eclipse debugger in the emulator. i have no problem stepping through the code and control stops at my breakpoints. except... my application creates a status bar notification. when i open the the 开发者_开发技巧notifications and click on my notification (in the emulator) it starts the activity associated with that notification.

i have some breakpoints set in the methods of the activity but the debugger seems to ignore them. i can from the log that the code executed - the debugger just ignores the breakpoints and doesn't stop on them.

is there something i need to do (perhaps in the manifest or in eclipse) to enable stepping through activities such as this (that are started by android when the user clicks to open a status bar notification)?


Breakpoints do not hit in broadcast receivers. I haven't found yet documentation on this, but the following threads suggest that this is common knowledge:

  1. https://stackoverflow.com/a/3617722
  2. Breakpoint not triggers in Broadcast Receiver

If anyone knows otherwise, please correct.

0

精彩评论

暂无评论...
验证码 换一张
取 消