mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Env tests: tests for debugger log expressions.
This commit is contained in:
@@ -250,6 +250,25 @@ public class XDebuggerTestUtil {
|
||||
}
|
||||
}
|
||||
|
||||
public static void setBreakpointLogExpression(Project project, int line, final String logExpression) {
|
||||
XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager();
|
||||
for (XBreakpoint breakpoint : breakpointManager.getAllBreakpoints()) {
|
||||
if (breakpoint instanceof XLineBreakpoint) {
|
||||
final XLineBreakpoint lineBreakpoint = (XLineBreakpoint)breakpoint;
|
||||
|
||||
if (lineBreakpoint.getLine() == line) {
|
||||
new WriteAction() {
|
||||
@Override
|
||||
protected void run(Result result) throws Throwable {
|
||||
lineBreakpoint.setLogExpression(logExpression);
|
||||
lineBreakpoint.setLogMessage(true);
|
||||
}
|
||||
}.execute();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class XTestStackFrameContainer extends XTestContainer<XStackFrame> implements XExecutionStack.XStackFrameContainer {
|
||||
public void addStackFrames(@NotNull List<? extends XStackFrame> stackFrames, boolean last) {
|
||||
addChildren(stackFrames, last);
|
||||
|
||||
Reference in New Issue
Block a user