[debugger] Add assert debbuger session

GitOrigin-RevId: 7a42d615967a0ecb3a70d590ebfd71fb35ee9cc3
This commit is contained in:
Nikita Kudrin
2024-02-16 12:07:56 +02:00
committed by intellij-monorepo-bot
parent 858b5e1e70
commit 3df6e15a01

View File

@@ -519,6 +519,7 @@ public abstract class DebuggerTestCase extends ExecutionWithDebuggerToolsTestCas
assertFalse(EDT.isCurrentThreadEdt());
DebuggerSession debuggerSession = DebuggerManagerEx.getInstanceEx(myProject)
.attachVirtualMachine(new DefaultDebugEnvironment(environment, state, remoteConnection, pollConnection));
assertNotNull(debuggerSession);
ApplicationManager.getApplication().invokeAndWait(() -> {
try {
XDebuggerManager.getInstance(myProject).startSession(environment, new XDebugProcessStarter() {