Last active
September 2, 2024 00:51
-
-
Save Farenheith/b79f3cc430013eb3ea0dfb011c98df93 to your computer and use it in GitHub Desktop.
Launch.json example for vscode using nvm to get node version directly from .nvmrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [{ | |
"type": "node", | |
"request": "launch", | |
"name": "Launch program", | |
"skipFiles": ["<node_internals>/**"], | |
"cwd": "${workspaceRoot}", | |
"envFile": "${workspaceFolder}/.env", | |
"runtimeExecutable": "${env:NVM_DIR}/nvm-exec", | |
"args": [ | |
"node", | |
"${workspaceRoot}/index.js" | |
], | |
"outputCapture": "std", | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment