Npm软件包使用Webstorm进行钩子调试 [英] Npm package sails hook debug with Webstorm

查看:56
本文介绍了Npm软件包使用Webstorm进行钩子调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以...
我得到了我为Sails框架开发的npm软件包.
NPM软件包为:

So...
I got this npm package I'm developing for the sails framework.
The NPM package is:

https://github.com/stuk88/ecobill-hook-cms

它被装上帆钩.在Webstorm内部使用断点调试软件包的最佳方法是什么?

Its loaded as a hook in sails. what is the best way to debug the package with breakpoints inside Webstorm?

推荐答案

确定
因此,答案是git将钩子项目克隆到其他文件夹,然后将该文件夹链接到/api/hooks/%hook_name%
内的文件夹
要在Windows 10中建立链接,请使用以下命令(在Admin CMD中):mklink/d c:\ target c:\ source(不了解属性顺序,请在--help中查看)

然后调试将像超级按钮一样工作.

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.

这篇关于Npm软件包使用Webstorm进行钩子调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆