Reputation: 30761
I would like to add a feature to an open source NPM package.
I know what needs to happen, but it would be very useful to be able to step through the package while it is processing. Can this be done?
Upvotes: 1
Views: 274
Reputation: 146084
Yes, there are both command line and graphical debugging options that will let you step through your own code, npm module code, node core code (JS), etc. I use the node-inspector module to hook chrome's web inspector graphical debugger up to a running node process. It works really well.
Upvotes: 2