So...
I got this npm package I'm developing for the sails framework.
The NPM package is:
https://github.com/stuk88/ecobill-hook-cms
Its loaded as a hook in sails. what is the best way to debug the package with breakpoints inside Webstorm?
So...
I got this npm package I'm developing for the sails framework.
The NPM package is:
https://github.com/stuk88/ecobill-hook-cms
Its loaded as a hook in sails. what is the best way to debug the package with breakpoints inside Webstorm?
Steps:
app.js
in the same working directory--dev
)That's all. It works for me.
Webstorm: 2016.3.1
Ok
So the answer to that is to git clone the hook project to some other folder, and then link that folder to a folder insides /api/hooks/%hook_name%
To make a link in Windows 10, use this command (In Admin CMD):
mklink /d c:\target c:\source
(Not shure about the attributes order, check it out in --help)
Then the debugging will work like a charm.