Mild Fuzz
Mild Fuzz

Reputation: 30761

What is the best way to step through an NPM Package

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

Answers (1)

Peter Lyons
Peter Lyons

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

Related Questions