While using conditional breakpoints in Eclipse, is it possible for one condition code to leave some value in some global variable for the next breakpoint to look at?
Example:
File a.java
118 . . .
119
120 String msg = null;
121
122 if( a == 2 ) {
123 msg = "It is 2";
124 }
125
126 text.setText(msg);
127
128 . . .
TextView.java
3595 @android.view.RemotableViewMethod
3596 public final void setText(CharSequence text) {
3597 setText(text, mBufferType);
3598 }
Conditional Breakpoint code in file a.java line 123
System.out.println("Got it!");
gotIt = true;
return false;
Conditional Breakpoint code in file TextView.java line 3597
if( gotIt ) {
System.out.println("Setting text after we got it");
}
return false;
It is clear that TextView.setText()
might be called a zillion times from many places in the app, but I want to isolate that single time when the code in file a.java was executed and print a message.