Skip to content

Instantly share code, notes, and snippets.

@debovis
Last active January 29, 2026 02:14
Show Gist options
  • Select an option

  • Save debovis/ae506fe6ef1ea3a1248ff66e92b242a1 to your computer and use it in GitHub Desktop.

Select an option

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",
}
}
@yehudamakarov

Copy link
Copy Markdown

I just don't hit the breakpoints. crazy.

@yehudamakarov

Copy link
Copy Markdown

@yehudamakarov

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

@debovis

debovis commented Nov 2, 2021

Copy link
Copy Markdown
Author

@yehudamakarov not sure I follow

@yehudamakarov

Copy link
Copy Markdown

@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