rewrite adding and removing breakpoints with plugins

(cherry picked from commit f0e8831)
This commit is contained in:
Dmitry Trofimov
2014-09-05 00:41:56 +02:00
parent cbf6781d00
commit cffddb8d7b
3 changed files with 5 additions and 5 deletions
@@ -80,7 +80,7 @@ public class PyThreadInfo {
}
public boolean isExceptionBreak() {
return myStopReason == AbstractCommand.ADD_EXCEPTION_BREAKPOINT || myStopReason == AbstractCommand.ADD_DJANGO_EXCEPTION_BREAKPOINT;
return myStopReason == AbstractCommand.ADD_EXCEPTION_BREAKPOINT;
}
@Override
@@ -28,13 +28,9 @@ public abstract class AbstractCommand<T> {
public static final int ADD_EXCEPTION_BREAKPOINT = 122;
public static final int REMOVE_EXCEPTION_BREAKPOINT = 123;
public static final int LOAD_SOURCE = 124;
public static final int ADD_DJANGO_EXCEPTION_BREAKPOINT = 125;
public static final int REMOVE_DJANGO_EXCEPTION_BREAKPOINT = 126;
public static final int SMART_STEP_INTO = 128;
public static final int EXIT = 129;
public static final int CALL_SIGNATURE_TRACE = 130;
public static final int ADD_JINJA2_EXCEPTION_BREAKPOINT = 131;
public static final int REMOVE_JINJA2_EXCEPTION_BREAKPOINT = 132;
public static final int CMD_RUN_CUSTOM_OPERATION = 135;
public static final int SHOW_CONSOLE = 142;
public static final int ERROR = 901;
@@ -79,6 +79,10 @@ public class PyExceptionBreakpointProperties extends ExceptionBreakpointProperti
myNotifyOnlyOnFirst = notifyOnlyOnFirst;
}
public String getException() {
return "python-" + myException;
}
@Override
public ExceptionBreakpointCommand createAddCommand(RemoteDebugger debugger) {
return ExceptionBreakpointCommand.addExceptionBreakpointCommand(debugger, getException(),