java - Breakpoint filter by subclass? -


is possible set breakpoint stop if given method called subclass?

i.e. both method defined , breakpoint set in superclass. method not overridden in subclass called it. need catch cases, when happen given subclass.

this suitable track incorrect usage in highly branched libraries. example class verycoolancestor called 1000 times, while 1 of calls of buggy class b.

i know if possible in eclipse. if not possible in eclipse, know other debuggers possible.

i need automation, don't need know workarounds inserting test calls in code or test overriding methods.

you can use conditional breakpoints in eclipse.

right click on breakpoint, select "breakpoint properties", enable "conditional" checkbox , add instanceof statement satisfies requirements:


enter image description here

or, can write block debugging purposes, having 1 statement:

if(somecondition) {     system.out.println("breakpoint here"); } 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -