neg*_*tek 6 task node.js visual-studio-code
我可以在使用 launch.json 中的 preLaunchTask arg 在 vscode 中调试我的节点应用程序之前启动任务,但在调试后我找不到启动任务的方法。有没有办法像 preLaunchTask 一样在 vscode 中做到这一点?
v1.22 刚刚添加了一个postDebugTask
,发布说明: postDebugTask。
我们在 launch.json 中添加了 postDebugTask 支持。此任务在调试会话完成后运行。与 preLaunchTask 类似,您可以通过名称引用 tasks.json 中的任务。以下是使用 postDebugTask 的启动配置示例:
{
"name": "Attach to node server",
"type": "node",
"request": "attach",
"port": 8008,
"preLaunchTask": "Start Server",
"postDebugTask": "Your delete task here"
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2409 次 |
最近记录: |