Skip to content

Instantly share code, notes, and snippets.

@debovis
Last active January 16, 2024 14:13
Show Gist options
  • Save debovis/ae506fe6ef1ea3a1248ff66e92b242a1 to your computer and use it in GitHub Desktop.
Save debovis/ae506fe6ef1ea3a1248ff66e92b242a1 to your computer and use it in GitHub Desktop.
How to debug gatsby and reactjs with webstorm
{
"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",
}
}
@riywo
Copy link

riywo commented Aug 16, 2020

This is awesome! Thank you for sharing!

@yehudamakarov
Copy link

I just don't hit the breakpoints. crazy.

@yehudamakarov
Copy link

@yehudamakarov
Copy link

"scripts": {
    "develop": "gatsby develop",
    "debug": "node $NODE_DEBUG_OPTION ./node_modules/.bin/gatsby develop",

@debovis
Copy link
Author

debovis commented Nov 2, 2021

@yehudamakarov not sure I follow

@yehudamakarov
Copy link

@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