DEV Community

Discussion on: 5 Steps to debugging Next.js/Node.js from VSCode or Chrome DevTools

Collapse
 
jrejaud profile image
Jordan Réjaud

Bonjour Vincent,

Excellent tutorial, thank you.

Could you write one that explains how to do the same with Webstorm instead of VS Code?

Similar to how Webstorm lets you debug React apps:
blog.jetbrains.com/webstorm/2017/0...

Thank you :)

Collapse
 
jrejaud profile image
Jordan Réjaud

I figured it out,

  1. Change your next dev script to the following (same as you mentioned in your tutorial)
    "scripts": {
    "dev": "NODE_OPTIONS='--inspect' next",
    }

  2. Create a JS Debug config (see blog.jetbrains.com/webstorm/2017/0...)

  3. Remember to update Google Chrome! I didn't do this and it's what messed me up.