mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
preparing to enable multithreaded test
This commit is contained in:
@@ -61,6 +61,7 @@ import com.intellij.xdebugger.XDebugProcess;
|
||||
import com.intellij.xdebugger.XDebugProcessStarter;
|
||||
import com.intellij.xdebugger.XDebugSession;
|
||||
import com.intellij.xdebugger.XDebuggerManager;
|
||||
import com.sun.jdi.Location;
|
||||
import org.jdom.Element;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -421,6 +422,17 @@ public abstract class DebuggerTestCase extends ExecutionWithDebuggerToolsTestCas
|
||||
return createDebuggerContext(suspendContext, suspendContext.getFrameProxy());
|
||||
}
|
||||
|
||||
protected void printLocation(SuspendContextImpl suspendContext) {
|
||||
try {
|
||||
Location location = suspendContext.getFrameProxy().location();
|
||||
String message = "paused at " + location.sourcePath() + ":" + location.lineNumber();
|
||||
println(message, ProcessOutputTypes.SYSTEM);
|
||||
}
|
||||
catch (Throwable e) {
|
||||
addException(e);
|
||||
}
|
||||
}
|
||||
|
||||
protected void createBreakpointInHelloWorld() {
|
||||
DebuggerInvocationUtil.invokeAndWait(myProject, new Runnable() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user