Reputation: 415
I am trying to debug my NodeJS code using WebStorm 2016.3 and NodeV8 and I am unable to debug it with this error
"bad option: - expose_debug_as=v8debug"
Upvotes: 5
Views: 1688
Reputation: 337
Just add as Node parameter in Edit Configurations -> Node parameters : '--inspect'. Tested in Webstorm 2016.3 (Linux edition)
Upvotes: 2
Reputation: 415
I got this fixed by updating my Webstorm to Webstorm 2017.x This will debug with Node 8.
Upvotes: 3