preparing to enable multithreaded test

This commit is contained in:
Egor.Ushakov
2015-09-15 15:22:27 +03:00
parent 48a70c25ca
commit a28bf2afc5
@@ -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