与状态栏通知关联的活动中的断点被忽略
我是 android 开发新手,但广泛使用 eclipse。
我正在模拟器的 eclipse 调试器中运行一些 android 应用程序。我单步执行代码没有问题,并且控制在我的断点处停止。除了...我的应用程序创建了一个状态栏通知。当我打开通知并单击我的通知(在模拟器中)时,它会启动与该通知关联的活动。
我在活动的方法中设置了一些断点,但调试器似乎忽略了它们。我可以从代码执行的日志中得知 - 调试器只是忽略断点并且不会在它们上停止。
我需要做些什么(也许在清单中或在 Eclipse 中)才能启用 单步执行诸如此类的活动(当用户单击打开状态栏通知时由 android 启动)?
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)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
广播接收器中不会出现断点。我还没有找到这方面的文档,但以下线程表明这是常识:
如果有人不知道,请更正。
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:
If anyone knows otherwise, please correct.