{"record":{"id":"5b4844bc3d2fe724","repo":"JetBrains/intellij-community","slug":"the-port-to-listen-at-unspecified","errorCode":null,"errorMessage":"The port to listen at unspecified","messagePattern":"The port to listen at unspecified","errorType":"exception","errorClass":"CantRunException","httpStatus":null,"severity":"error","filePath":"java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessImpl.java","lineNumber":738,"sourceCode":"    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();\n        if (debuggerHostName != null) {\n          setConnectorArgument(\"localAddress\", debuggerHostName);\n        }\n      }\n      else { // is client mode, should attach to already running process\n        if (myConnection.isUseSockets()) {\n          String debuggerHostName = myConnection.getDebuggerHostName();\n          if (debuggerHostName != null) {\n            setConnectorArgument(\"hostname\", debuggerHostName);\n          }\n          if (port == null) {\n            throw new CantRunException(JavaDebuggerBundle.message(\"error.no.debug.attach.port\"));\n          }\n          setConnectorArgument(\"port\", port);\n        }\n        else {","sourceCodeStart":720,"sourceCodeEnd":756,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/debugger/impl/src/com/intellij/debugger/engine/DebugProcessImpl.java#L720-L756","documentation":"Error \"The port to listen at unspecified\" thrown in JetBrains/intellij-community.","triggerScenarios":"A listen-mode remote debug configuration is started without a port.","commonSituations":"The Port field was cleared or never filled in a Remote JVM Debug configuration using Listen mode.","solutions":["Specify the port the debugger should listen on in the run/debug configuration.","Choose a free local port, e.g. 5005."],"exampleFix":"Run | Edit Configurations -> Remote JVM Debug -> Debugger mode: Listen -> Port: 5005.","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-15T22:17:37.221Z"}