Debug: is there a way to terminate preLaunchTask process (when debug stops)? #12315
Labels
debug
Debug viewlet, configurations, breakpoints, adapter issues
*duplicate
Issue identified as a duplicate of another issue(s)
feature-request
Request for new features or functionality
Steps to Reproduce:
I am debugging my server (node) code and I added a "start cdn server" preLaunchTask. This task is starting an express server which serves my static files (I want to be able to open my browser and enter server code in debug mode).
While it works fine, I want to be able to kill this cdn server process when debug stops. I was expecting the prelaunch task to be a child process of the debug process, which would solve my problem, but it isn't (it is a child process of VS Code).
Is there a reasonable solution to my problem?
The text was updated successfully, but these errors were encountered: