forked tests debugging: fixed assert on reattach

This commit is contained in:
Egor.Ushakov
2015-05-08 21:38:43 +03:00
parent 459e3574f3
commit 9f1a944f75
@@ -1769,7 +1769,12 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
ApplicationManager.getApplication().assertIsDispatchThread(); //TODO: remove this requirement
((XDebugSessionImpl)getXdebugProcess().getSession()).reset();
myState.set(STATE_INITIAL);
myRequestManager.processDetached(this, false);
getManagerThread().schedule(new DebuggerCommandImpl() {
@Override
protected void action() throws Exception {
myRequestManager.processDetached(DebugProcessImpl.this, false);
}
});
myConnection = environment.getRemoteConnection();
getManagerThread().restartIfNeeded();
createVirtualMachine(environment.getSessionName(), environment.isPollConnection());