mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed forked tests debugging did not stop in the first sub-session
This commit is contained in:
@@ -1769,6 +1769,7 @@ 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);
|
||||
myConnection = environment.getRemoteConnection();
|
||||
getManagerThread().restartIfNeeded();
|
||||
createVirtualMachine(environment.getSessionName(), environment.isPollConnection());
|
||||
|
||||
@@ -302,10 +302,14 @@ public class XDebugSessionImpl implements XDebugSession {
|
||||
disableSlaveBreakpoints(dependentBreakpointManager);
|
||||
processAllBreakpoints(true, false);
|
||||
|
||||
myBreakpointListener = new MyBreakpointListener();
|
||||
breakpointManager.addBreakpointListener(myBreakpointListener);
|
||||
myDependentBreakpointListener = new MyDependentBreakpointListener();
|
||||
dependentBreakpointManager.addListener(myDependentBreakpointListener);
|
||||
if (myBreakpointListener == null) {
|
||||
myBreakpointListener = new MyBreakpointListener();
|
||||
breakpointManager.addBreakpointListener(myBreakpointListener);
|
||||
}
|
||||
if (myDependentBreakpointListener == null) {
|
||||
myDependentBreakpointListener = new MyDependentBreakpointListener();
|
||||
dependentBreakpointManager.addListener(myDependentBreakpointListener);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user