#4

Debugging Gatsby in VSCode

2019-08-13

TAGS: vscodegatsbydebugging

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

https://www.gatsbyjs.org/docs/debugging-the-build-process/

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.