jorgebucaran / nvm.fish

The Node.js version manager you'll adore, crafted just for Fish
https://git.io/nvm.fish
MIT License
2.06k stars 69 forks source link

VSCode debug "can't find Node.js binary" #191

Closed SteveMelons closed 2 years ago

SteveMelons commented 2 years ago

When trying to use the debug feature in VSCode, it throws an error saying that it cannot find the node binary.

image

launch.json

{
  // Use IntelliSense to learn about possible 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": "pwa-node",
      "request": "launch",
      "name": "Launch Program",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "program": "${workspaceFolder}/src/app.ts",
      "outFiles": [
        "${workspaceFolder}/**/*.js"
      ]
    }
  ]
}

Is there any special configuration needed to get this to work?

jorgebucaran commented 2 years ago

Are you using nvm.fish in Windows? Does it work outside Code?

SteveMelons commented 2 years ago

I am using WSL2 with Ubuntu installed. I'm using the fish shell there and this plugin to manage the node versions. And everything works fine from the terminal, just not when using VSCode.

jorgebucaran commented 2 years ago

Your base OS is still Windows, correct? Who launches VSCode? What's in your PATH when VSCode starts?

Do you also happen to have a config.fish? Can you show me what's in it?

jorgebucaran commented 2 years ago

Closing as stale.