Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Cannot find debug adapter for type 'node'. "

I'm trying to debug node script in vs code.

Below is my launch.json -

    {
        "version": "0.2.0",
        "configurations": [
            {
                "type": "node",
                "request": "launch",
                "name": "Debug sql report",
                "program": "${workspaceFolder}/scripts/debug_sql.js"
            }
        ]
    }

when I run I get an error Cannot find debug adapter for type 'node'.

VS Code NodeJs Debugger Error

My code version is - Version 1.36.1 (1.36.1)

Node debugger used to work earlier. But not sure why it is not working now.

Any idea how to fix this?

like image 717
Rajkumar Natarajan Avatar asked Jul 23 '19 17:07

Rajkumar Natarajan


1 Answers

I had to restart vscode.

Not sure if it's connected but my app crashed because of JavaScript heap out of memory error.

like image 123
Elliott de Launay Avatar answered Sep 17 '22 23:09

Elliott de Launay