mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
rewrite adding and removing breakpoints with plugins
(cherry picked from commit f0e8831)
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user