如何在使用Visual Studio Task Runner Explorer运行时调试gulpfile.js? [英] How can I debug gulpfile.js when running it with Visual Studio Task Runner Explorer?
问题描述
如何在使用Visual Studio Task Runner Explorer运行时调试gulpfile.js?还是有另一种方式可能与视觉工作室推出吞噬gulpfile.js可能会被调试?我知道节点检查器,但想知道是否有Visual Studio本地的东西。
解决方案我知道你可能会期望一个更好的方法来做这件事,但他目前的做法是在 gulpfile.js
通过这种方式,我可以检查变量并尝试找到任何逻辑错误。
How can I debug gulpfile.js when running it with Visual Studio Task Runner Explorer? Or is there another way gulp may be launched with visual studio such that gulpfile.js may be debugged? I am aware of node-inspector but want to see if there is something native to Visual Studio.
I know that you may expect a better way of doing this but he way I currently do it is by using plain
console.log() statements inside the gulpfile.js
That way I can inspect the variables and try and spot any logic errors.
这篇关于如何在使用Visual Studio Task Runner Explorer运行时调试gulpfile.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!