breakpointAdded(breakpoint);
}
teavmDebugger.addListener(new DebuggerListener() {
@Override
public void resumed() {
fireEvent(new DebugEvent(TeaVMDebugTarget.this, DebugEvent.RESUME));
thread.fireResumeEvent(0);
if (jsThread != null) {
jsThread.fireResumeEvent(0);
}
}
@Override
public void paused() {
fireEvent(new DebugEvent(TeaVMDebugTarget.this, DebugEvent.SUSPEND));
thread.fireSuspendEvent(0);
thread.fireChangeEvent(0);
if (jsThread != null) {
jsThread.fireSuspendEvent(0);
jsThread.fireChangeEvent(0);
}
}
@Override
public void detached() {
fireEvent(new DebugEvent(TeaVMDebugTarget.this, DebugEvent.CHANGE));
thread.fireChangeEvent(0);
if (jsThread != null) {
jsThread.fireChangeEvent(0);
}
for (Breakpoint teavmBreakpoint : teavmDebugger.getBreakpoints()) {
updateBreakpoint(teavmBreakpoint);
}
}
@Override
public void breakpointStatusChanged(Breakpoint teavmBreakpoint) {
updateBreakpoint(teavmBreakpoint);
}
@Override
public void attached() {
fireEvent(new DebugEvent(TeaVMDebugTarget.this, DebugEvent.CHANGE));
for (Breakpoint teavmBreakpoint : teavmDebugger.getBreakpoints()) {
updateBreakpoint(teavmBreakpoint);
}
}
});