[英]Java Eclipse how to view active listeners in debugger
How can I see what listeners are active whilst debugging? 如何查看调试期间处于活动状态的侦听器?
I can see where I "setListener" as I step through - but as there is never a callback I am wondering if the listener is actually still alive. 我可以看到我逐步设置的“ setListener”的位置-但是由于没有回调,所以我想知道侦听器是否仍然有效。
You can point a breakpoint inside a listener code, so you can see when it has been invoked. 您可以在侦听器代码中指向一个断点,以便可以看到何时调用了该断点。 Does it help you?
有帮助吗?
This open the code that your listener variable points at the next debug step. 这将打开您的侦听器变量在下一步调试中指向的代码。
=) =)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.