Created
January 26, 2018 05:44
-
-
Save sandys/657b8735335036973ff95f27eb41c23a to your computer and use it in GitHub Desktop.
visual studio setup to debug gatsbyjs
This file contains hidden or 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
{ | |
// 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": [ | |
{ | |
"name": "Launch (Production)", | |
"type": "node", | |
"request": "launch", | |
"protocol": "inspector", | |
"program": "${workspaceRoot}/node_modules/gatsby/dist/bin/gatsby", | |
"args": ["build", "-p", "7777"], | |
"stopOnEntry": false, | |
"cwd": "${workspaceRoot}", | |
"preLaunchTask": null, | |
"runtimeExecutable": null, | |
"runtimeArgs": [ | |
"--nolazy" | |
], | |
"env": { | |
"NODE_ENV": "development", | |
"DEBUG": "gatsby:*" | |
}, | |
"console": "integratedTerminal", | |
"sourceMaps": true, | |
"outFiles": [] | |
}, | |
{ | |
"name": "Launch (Develop)", | |
"type": "node", | |
"request": "launch", | |
"protocol": "inspector", | |
"program": "${workspaceRoot}/node_modules/gatsby/dist/bin/gatsby", | |
"args": ["develop", "-p", "7777"], | |
"stopOnEntry": false, | |
"cwd": "${workspaceRoot}", | |
"preLaunchTask": null, | |
"runtimeExecutable": null, | |
"runtimeArgs": [ | |
"--nolazy" | |
], | |
"env": { | |
"NODE_ENV": "development", | |
"DEBUG": "gatsby:*" | |
}, | |
"console": "integratedTerminal", | |
"sourceMaps": true, | |
"outFiles": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This results into an "unverified breakpoint" for my breakpoints. Any advice on how to fix that? Thanks!