{"record":{"id":"6be59bfd6596be78","repo":"JetBrains/intellij-community","slug":"debugger-is-already-listening","errorCode":null,"errorMessage":"Debugger is already listening","messagePattern":"Debugger is already listening","errorType":"exception","errorClass":"IOException","httpStatus":null,"severity":"error","filePath":"java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessImpl.java","lineNumber":722,"sourceCode":"        try {\n          if (thread.frameCount() > 0) {\n            StackFrameProxyImpl stackFrame = thread.frame(0);\n            if (stackFrame != null) {\n              return stackFrame.location();\n            }\n          }\n        }\n        catch (EvaluateException ignored) {\n        }\n      }\n    }\n    return null;\n  }\n\n  private VirtualMachine createVirtualMachineInt() throws ExecutionException {\n    try {\n      if (myArguments != null) {\n        throw new IOException(JavaDebuggerBundle.message(\"error.debugger.already.listening\"));\n      }\n\n      final String port = myConnection.getDebuggerAddress();\n\n      Connector connector = getConnector();\n      myArguments = connector.defaultArguments();\n      if (myConnection instanceof PidRemoteConnection && !((PidRemoteConnection)myConnection).isFixedAddress()) {\n        String pid = ((PidRemoteConnection)myConnection).getPid();\n        if (StringUtil.isEmpty(pid)) {\n          throw new CantRunException(JavaDebuggerBundle.message(\"error.no.pid\"));\n        }\n        setConnectorArgument(\"pid\", pid);\n      }\n      else if (myConnection.isServerMode()) {\n        if (port == null) {\n          throw new CantRunException(JavaDebuggerBundle.message(\"error.no.debug.listen.port\"));\n        }\n        String debuggerHostName = myConnection.getDebuggerHostName();","sourceCodeStart":704,"sourceCodeEnd":740,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessImpl.java#L704-L740","documentation":"Error \"Debugger is already listening\" thrown in JetBrains/intellij-community.","triggerScenarios":"A remote/debug 'listen' session is started while another debugger session is already listening.","commonSituations":"Re-running a Listen-style remote debug configuration without terminating the previous session.","solutions":["Stop the existing debug session before starting a new one on the same configuration.","Use a different port if you intentionally run two debugger listeners."],"exampleFix":"Click the red Stop button in the Debug tool window, then start debugging again.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}