Skip to content

Feature request: preLaunchTask shouldn't be triggered when restarting debug. #17439

Closed

Description

@Izhaki

VSCode Version: 1.8.0

Can't tell how each and every person uses the debug launch configuration, but I guess that many of us use it to setup the debugging environment.

Use case

In my case, I simply use preLaunchTask to transpile my TS files.

As you debug, you sometimes simply need to modify the breakpoints, or you just want to restart because you stepped over something you realise you should have stepped into.

Problem

The issue is, that every time you restart the debug session, preLaunchTask is executed and takes some time although the code hasn't changed.


I assume that when people want to change the code, they:

  • Stop the debugging session
  • Modify the code
  • Start the session again.

I may be wrong and some people would prefer the current behaviour, in which case it would be nice to add an option to choose whether or not to trigger the preLaunchTask.

Activity

  1. Spown commented on Dec 17, 2016

    @Spown

    I presume most people make compiling tasks as watching ones which triggers the compilation on file change only. They start the task manually at the start of editing session and do not set them as preLaunchTask. I had an old issue (#3929) where I tried to sway people to make preLaunchTask to act differently if it ware a watching task, i.e. not to try to restart it if it is already running. Somehow nobody cared to look into it...

  2. added
    debug
    on Dec 17, 2016
  3. added
    feature-request
    on Apr 13, 2017
  4. weinand commented on Sep 17, 2018

    @weinand
    Contributor

    Isidor Nikolic (@isidorn) fix it or close it.

  5. Izhaki commented on Sep 17, 2018

    @Izhaki
    Author

    Closed due to no activity.

  6. locked and limited conversation to collaborators on Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

debugfeature-request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions