I'm debugging an application that does a lot of method calling. I want to, for example, debug methodA
. It is called 1000 times.
But, in my main loop, I only want to start debugging method A after a few statements.
public void methodA()
{
//does something nasty that I want to debug
}
public static void main( String[] args )
{
for (int i=0; i<1000; i++)
{
methodA();
}
methodB();
methodA();
}
I want to start breaking in methodA
only after methodB
is called. I don't really want to change my code (say, inserting a boolean
value and making the breakpoint conditional on that boolean
).
Is something like this possible in Eclipse? Or are there better options?
See Question&Answers more detail:os