Created
August 14, 2017 14:47
-
-
Save spiderbites/25e3825c148da82204f542014ae3452e to your computer and use it in GitHub Desktop.
[Remote debug Node app running in VM provisioned by Vagrant with VSCode] #vagrant #vscode #node #debug
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": [ | |
{ | |
"name": "Attach", | |
"type": "node", | |
"request": "attach", | |
"port": 5858, | |
"address": <VM-IP>, | |
"restart": false, | |
"sourceMaps": false, | |
"localRoot": "${workspaceRoot}", | |
"remoteRoot": "/home/vagrant" | |
} | |
] | |
} |
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
{ | |
"scripts": { | |
"start": "node --debug server.js" | |
} | |
} |
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
config.vm.network "forwarded_port", guest: 5858, host: 5858 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment