admin管理员组文章数量:1356277
(Java, Eclipse) I have a variable instance on which I call a method (like o.setValue(...) ) in between this and the output, something, somewhere (in the very complex legacy codebase with custom Annotations & Bindings and Reflection) calls the .setValue() method from some superclass.
var i = ...;
i.setValue(true); //setValue() Inherited from some superclass
i.getValue()==true
[Framework / Reflection / Annotation magic]
i.getValue()!=true; //where was setValue() called on my instance?
I want to find out where. Thus, I want to set a conditional breakpoint (in Eclipse, Java) that tiggers exactly if my Instances setValue() method is called. How can I do that?
I did try a conditional Breakpoint, but the condition is evaluated in the scope of .setValue(), and my instance usually doesn't have any special properties, because it's before a complex change or the values are too general (null or true etc.).
The easiest/ most elegant/ general way would be via its address, but that value is in a different scope/Module.
Thus, how would I get my instance address into the Breakpoint condition, and accessible in all Modules/scopes.
本文标签: javaBreakpoint on method call for one instanceStack Overflow
版权声明:本文标题:java - Breakpoint on method call for one instance - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744035355a2579670.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论