You can set a breakpoint at the beginning of the Query() method. When the method is invoked, execution stops at the breakpoint.
public static int Query() {
int max_price = 0;
Repeatedly clicking the indicator toggles its status. After setting the breakpoint, the Java class does not need to be recompiled.