[英]post launch task in visual studio code
I can launch task before debug my node app in vscode with preLaunchTask arg in launch.json but I can't find a way to launch task after the debug.我可以在使用 launch.json 中的 preLaunchTask arg 在 vscode 中调试我的节点应用程序之前启动任务,但在调试后我找不到启动任务的方法。 Is there a way to do this in vscode like with the preLaunchTask?
有没有办法像 preLaunchTask 一样在 vscode 中做到这一点?
v1.22 just added a postDebugTask
, release notes: postDebugTask . v1.22 刚刚添加了一个
postDebugTask
, 发布说明: postDebugTask 。
We have added postDebugTask support in launch.json.
我们在 launch.json 中添加了 postDebugTask 支持。 This task is run after a debug session finishes.
此任务在调试会话完成后运行。 Similar to preLaunchTask, you can reference tasks in your tasks.json by a name.
与 preLaunchTask 类似,您可以通过名称引用 tasks.json 中的任务。 Here's an example of a launch configuration using a postDebugTask:
以下是使用 postDebugTask 的启动配置示例:
{
"name": "Attach to node server",
"type": "node",
"request": "attach",
"port": 8008,
"preLaunchTask": "Start Server",
"postDebugTask": "Your delete task here"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.