isWatching/background task as preLaunchTask in launch.json
See original GitHub issueIt would be nice to have a watcher task as preLaunchTask in launch.json. At the moment this is not possible because the launch task will not start before the preLaunchTask ends.
A long running preLaunchTask should have a regex similar to problemMatcher to wait for a specific text in the output window before executing the launch task.
In my scenario I’m running webpack dev server as a watcher task. I want this task to run if <kbd>F5</kbd> is hit and the preLaunchTask is not running. To delay the debugger launch it would be useful to test for a specific string in the output window webpack: bundle is now VALID.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:44
- Comments:63 (29 by maintainers)
Top Results From Across the Web
Using "preLaunchTasks" and Naming a Task in Visual Studio ...
FWIW, I'm using VS Code 1.20.1 and here's how I got my preLaunchTask to work: In launch.json : { "version": "0.2.0", "configurations": [...
Read more >Automatically starting a server when starting a debug session ...
So here is how to do this. We add two more lines to the existing `launch.json`, defining a task to run before debugging...
Read more >VS Code tips — Debug pre launch tasks - YouTube
Today's VS Code tip: debug pre launch tasksAdd a preLaunchTask to your debug configuration to automatically run a task when you start ......
Read more >Visual Studio Code 0.9.1
This improvement is based on a protocol change that affects all debug adapters. Debugging - Pre-Launch Task. In a project's launch configurations (launch.json), ......
Read more >Build before Debug in VSCode - dr. Sybren A. Stüvel
Then we need to update launch.json to run that task before ... Note the preLaunchTask , which is set to the label of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As mention the real fix is to allow something like
We should support defining watch begin / end pattern without a problem pattern as well.