0

I've got an MVC project in Visual Studio 2017, to which I've just added a Vue project (not from a Vue template), and I'm too lazy to open a command window and type npm run serve every time I start the debugger. How can I automate this so I don't have to waste precious seconds?

Scott Baker
  • 10,013
  • 17
  • 56
  • 102
  • Use a prelaunch task in your debugger config. It lets you basically pick a predefined 'task' that you've already made. You can make an `npm run serve` task in vscode from the tasks menu and then reference it as a prelaunch task in your debugger config. See [this](https://stackoverflow.com/questions/43836861/how-to-run-a-command-in-vs-code-with-launch-json) – GBWDev Dec 05 '19 at 16:56
  • @GBWDev I'm using Visual Studio 2017, not VSCode. I'll edit the question to reflect that. – Scott Baker Dec 05 '19 at 17:14
  • you reminded me old days https://blogs.msdn.microsoft.com/mithuns/2010/03/24/image-file-execution-options-ifeo/ you can do something like this. We used this for debugging startup of plugins that is being loaded by thirdparty – Abdurrahim Dec 05 '19 at 17:20

0 Answers0