-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postLaunchTask would be very useful #2405
Comments
@weinand any updates on the progress of the |
We accept PRs that fix this. |
@tstringer |
Is it possible to support this for compound launch configs - so that, for example, once all my node-js processes are up, inject some scenario data or clear the DB from previous experiment.... |
@trstringer why did you close this? I think this is still an appropraite feature request? |
I wasn't sure of the timeline, it was almost a year stale at this point. I'll reopen! |
Was looking for this and stumbled on this thread (created 2016!!). Definitely would be handy to auto-initiate a task after a debug session has started running. 👍👍 Edit: To clarify, not after a debug session has ended, eg postDebugTask, but after the debug session started and is still active |
I also stumbled on this because I stumbled onto a problem concerning this. PreLaunchTask -> Executes before launch, doesn't care about debugger (exactly how it is now) I wonder why it is not implemented this way and there is only PreLaunch and PostDebug, there must be a bigger reason on this. Does someone have more insight? |
Likewise, stumbled across this too while looking for something like "postLaunchTask" which allows for example to launch either a telnet client in a terminal or JLinkRTTClient to connect a terminal to a debugging session. |
Since the original use-case mentions launching a browser after a server has started, I wonder whether https://code.visualstudio.com/docs/editor/debugging#_automatically-open-a-uri-when-debugging-a-server-program is sufficient for this? Does anyone have a scenario that can't be covered with that feature? |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
@roblourens in our usecase we are generating some code during the build step and we want to then bundle the generated code. It would be ideal to run the tasks that bundle the generated code as a postLaunchTask. For now we are just manually running the tasks after the build is done. |
Not clear to me why that should be a postLaunchTask rather than part of the preLaunchTask |
We're using VS Code and a well-supported VS-code extension to deploy code to Roku. |
Yes, Refer to my comment above. With debuggers for embedded targets like the JLink Cortex ARM debugger you cannot use the |
I also have the same scenario as @hwmaier , also in embedded. |
Thanks. One reason I'm still hesitant to put this in vscode is that "postLaunch" is hard to define. There are multiple points in the debug setup flow that could be considered "postLaunch", and even then, there is no guarantee that the debuggee is in the right state that you need it in to be able to do what you want to do with it, and so I think a general "postLaunchTask" isn't the right direction. Instead you might try to write an extension that can do what you want. For an example, you can see what we did for the
We were solving the same problem there - for example, just because the web server process has started and a debugger has attached, it doesn't mean that the server is ready to handle requests, so we need to watch for a custom output string to know when the web server is ready. |
Currently we have the ability to specify a
preLaunchTask
inlaunch.json
configurations. This is extremely helpful in running a task that should kick off before launch.Conversely, there could be post launch tasks that would be helpful to automate their execution. An example of a post launch task would be to, after the launch of the application, open a browser window with a specific URL to the current application.
In summary, a
postLaunchTask
would be helpful aspreLaunchTask
is.The text was updated successfully, but these errors were encountered: