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.
相关问题
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- How to know full paths to DLL's from .csproj f
- Importing NuGet references through a local project
- Visual Studio 2019 - error MSB8020: The build tool
- 'System.Threading.ThreadAbortException' in
相关文章
- node连接远程oracle报错
- How to show location of errors, references to memb
- How can make folder with Firebase Cloud Functions
- How to track MongoDB requests from a console appli
- @angular-cli install fails with deprecated request
- Visual Studio Hangs on Loading UI Library
- How to use Mercurial from Visual Studio 2010?
- node.js modify file data stream?
Define a
.vscode\launch.json
file in the folder you "Open Folder" to in VS Code with this content:You'll obviously want to replace the task name and the path to your code in the above.
Then you can just hit "Go" in VS Code and it will launch gulp with the debugger attached.
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.