0

Running a simple node debugging session on visual studio code fails with the message:

Program 'node.dll' failed to run: No application is associated with the specified file

This is the message from Debug Console:

C:\Users\<USERNAME>\AppData\Local\Programs\Microsoft VS Code\node.dll --inspect-brk=12232 probe.js 
Error processing "launch": Error: spawn UNKNOWN
    at _errnoException (util.js:1024:11)
    at ChildProcess.spawn (internal/child_process.js:323:11)
    at Object.exports.spawn (child_process.js:514:9)
    at NodeDebugAdapter.launchInInternalConsole (c:\Users\<USERNAME>\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.node-debug2\out\src\nodeDebugAdapter.js:311:32)
    at NodeDebugAdapter.<anonymous> (c:\Users\<USERNAME>\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.node-debug2\out\src\nodeDebugAdapter.js:190:28)
    at Generator.next (<anonymous>)
    at fulfilled (c:\Users\<USERNAME>\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.node-debug2\out\src\nodeDebugAdapter.js:7:58)
    at <anonymous>

Re-installing Visual Studio Code temporary fixes the problem so that I am able to launch the debugging session, but I still this error message on every launch:

enter image description here

If I close visual studio code and start it again, it is back to not working with the same error message. My launch.json looks like this:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceFolder}\\probe.js",
            "console": "integratedTerminal"
        }
    ]
}

Any way to fix this issue permanently?

1 Answer 1

1

This solution perfectly works fine for me. enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

This kinda works for me. I got the error message: The module "node.dll" was loaded but the entry-point DLLUnregisterServer was not found. (same when I register it, except it's missing DLLRegisterServer). It still fixes the issue where the debugger won't start, but I still get the error message that the file does not have a program associated with it. So now I can at least debug. Thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.