Last active
January 16, 2024 14:13
-
-
Save debovis/ae506fe6ef1ea3a1248ff66e92b242a1 to your computer and use it in GitHub Desktop.
How to debug gatsby and reactjs with webstorm
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
{ | |
"name": "project-name", | |
"version": "1.0.0", | |
"description": "", | |
"main": "n/a", | |
"scripts": { | |
"serve": "gatsby develop -p 5000", | |
"dev": "node $NODE_DEBUG_OPTION ./node_modules/.bin/gatsby develop -p 5000", | |
} | |
} |
seeing this now https://stackoverflow.com/a/45968887/8546258
"scripts": {
"develop": "gatsby develop",
"debug": "node $NODE_DEBUG_OPTION ./node_modules/.bin/gatsby develop",
@yehudamakarov not sure I follow
@debovis I'm just sharing that I try to "debug" the npm script in Webstorm but the breakpoints are not hit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just don't hit the breakpoints. crazy.