Skip to content

Cannot connect to runtime process, timeout after 10000ms - (reason: Cannot connect to the target: Parse Error). #26411

@TitaneBoy

Description

@TitaneBoy
  • VSCode Version: 1.12.1
  • OS Version: Windows 7 Pro 64 bits
  • NodeJs Version: 6.10.0

Since the last update of vscode (1.12.1), when debugging my typescript/nodejs application (with nodemon), I got the error:

Cannot connect to runtime process, timeout after 10000ms - (reason: Cannot connect to the target: Parse Error).

The same code/project works very well (without any changes) in the previous version of vscode (1.11.2).

But what is strange, is that the code still working in the background..My functions and other stuff are well executed...but I can't break on any breakpoints and I can't stop/start/pause the debugging process (with Play/Pause/Stop buttons that appears on the top when we start debugging) because buttons for doing that are not visible anymore. So no break on breakpoints, no debug buttons but code still running in the background.

As I said, I didn't change anything in my code or in my project/debug configuration.

Here is my launch.json config:

{
  // Use IntelliSense to learn about possible Node.js debug attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    
    {
      "type": "node",
      "request": "launch",
      "name": "Launch server with Nodemon",
      "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/nodemon",
      "runtimeArgs": [
        "--debug=5858"
      ],
      "program": "${workspaceRoot}/src/server.ts",
      "restart": true,
      "port": 5858,
      "protocol": "inspector",
      "console": "integratedTerminal",
      "internalConsoleOptions": "neverOpen",
      "outFiles": ["${workspaceRoot}/build/**/*.js"],
      "sourceMaps": true
    },
    {
      "type": "node",
      "request": "attach",
      "name": "Attacher au processus",
      "address": "localhost",
      "port": 5858,
      "outFiles": []
    }
  ]
}

As I said before, the same code with the same launch.json config works very well with vscode 1.11.2 when debugging with nodemon.

Can you help me please with this issue ?

Thank you for your answers..

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions