And*_*rom 11 visual-studio-code
我开发web项目.Server是用TypeScript编写的node.js应用程序.客户端也写在Typescript中.我需要两种能力:
我怎样才能做到这一点?
Mat*_*ner 16
请参阅我们关于多目标调试的文档:https://code.visualstudio.com/Docs/editor/debugging#_multitarget-debugging
在您的工作中launch.json
,只需创建一个compounds
包含要调试的目标的部分
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Server",
"program": "${workspaceRoot}/server.js",
"cwd": "${workspaceRoot}"
},
{
"type": "node",
"request": "launch",
"name": "Client",
"program": "${workspaceRoot}/client.js",
"cwd": "${workspaceRoot}"
}
],
"compounds": [
{
"name": "Server/Client",
"configurations": ["Server", "Client"]
}
]
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4553 次 |
最近记录: |