Debugging Gatsby in VSCode


TAGS: vscodegatsbydebugging

I never realized just how nice the VSCode debugging was. Was having trouble debugging my Gatsby build and found these docs:


Setting VSCode's debug settings to Auto Attach and running this:

node --nolazy --inspect-brk node_modules/.bin/gatsby develop

I set up some breakpoints in the code, then I was able to see what was coming through and debug from there. Way more powerful than console logging out everything.