DEV Community

Discussion on: Why I struggle with Node

Collapse
 
grahamcox82 profile image
Graham Cox

I've not tried VS Code yet to be honest. Most of the Node work I do is in Atom, and on the occasions I need to do debugging I use the node-debug module, which just runs the application with the Chrome developer tools open.

What I've not yet worked out how to do is to debug a single unit test, or to connect a debugger to an already running application, both of which can be very useful.

Collapse
 
flosalihovic profile image
Florian Salihovic

Webstorm works like a charm.

Collapse
 
eduardohitek profile image
Eduardo Hitek

Hi! since you mentioned Atom, I would to know which plugins do you use on it for working with Node.
Thanks in advance.

Thread Thread
 
grahamcox82 profile image
Graham Cox

Good question. I've actually moved away from Atom to VS Code these days, but my Atom Plugin list that make sense for Node related stuff is:

  • atom-import-sort
  • atom-lupa
  • babel-react-syntax
  • build-grunt
  • colorful-json
  • es6-javascript
  • js-hyperclick
  • language-babel
  • language-javascript-jsx
  • linter-eslint
  • linter-package-json-validator
  • npm-helper
  • npm-plus

There's plenty of other plugins that are useful as well, for things like Git and the Minimap, but they aren't Node specific.

Collapse
 
rubberduck203 profile image
Chris McClellan

I think Code is using the new version of the debugger. Maybe the newer version of the debugger will help? If you do decide to give Code a shot, the "debugging with vs code" section here may help. I've had no issues debugging mocha unit tests. Sometimes I forget that it's not a "real" ide. christopherjmcclellan.wordpress.co...

Thread Thread
 
grahamcox82 profile image
Graham Cox

It's definitely on my list of things to try out. The problem is, it's not a small list :)

Thread Thread
 
rubberduck203 profile image
Chris McClellan

I feel you there. It took a month of weekends for me to come up with a stack I was reasonably happy with. I'm still unsure what would make me say "let's use Node for this one".