zoqainspire.blogg.se

Visual studio code debug package script in terminal
Visual studio code debug package script in terminal










Choose FilePreferences Extensions from the VS Code menu (or just press Ctrl+Shift+X to get there. If you want to debug external npm scripts with parameters or even chain of scripts, you can run them directly from node. Fortunately, you can install the Chrome debugger easily. So here is a solution for the workaround launch configuration. Select the configuration you added in the previous stepĭotnet tools/Cake.CoreCLR/Cake.dll build.I haven't found a solution how to pass -inspect-brk=9229 to node when you are running external npm run scripts.vscode/launch.json file that you created in the previous steps Add the following configuration to the.This can be done using the following steps: Open your Cake file and add a breakpoint by hitting F9Īnother way to enable debugging of a Cake script is to start Cake from the commandline and then attach the debugger from within Visual Studio Code."program": "$/tools/Cake.CoreCLR/Cake.dll", vscode/launch.json and add the following content (assuming your Cake file is build.cake) Open the directory containing your Cake files in Visual Studio Code.Install Cake Extension for Visual Studio Code.Install Cake.CoreCLR NuGet package to your tools folder.In order to enable debugging of a Cake file using Visual Studio Code, follow these steps: This means that while creating/modifying your Cake build script, you can use Visual Studio Code to step into the Cake file and get full debug support regardless of which operating system you are running (Windows / Linux / Mac). NET Core, it is now also possible to debug Cake files using Visual Studio Code. But since the v0.16.1 release of Cake, thanks to porting Cake to. How to debug a Cake file using Visual Studio Code Published 27 September 2016 Category How To's Author mholo65Īs you might already know, debugging Cake scripts using Visual Studio has been supported since the v0.12.0 release of Cake.












Visual studio code debug package script in terminal