[英]debug two applications output in one console vscode
我有兩個 java 應用程序在visual-studio-code
上成功運行。 當我開始調試時,每個都輸出自己的內部控制台。 有沒有辦法在工作區的許多應用程序中加入控制台輸出?
我的發射。json
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "graphql-server",
"console": "internalConsole", // how output in the same internalConsole debug
"request": "launch",
"envFile": "${workspaceFolder}/local.env",
"mainClass": "example.graphqlserver.Application",
"projectName": "graphql-server"
},
{
"type": "java",
"name": "graphql-client",
"console": "internalConsole", // how output in the same internalConsole debug
"envFile": "${workspaceFolder}/local.env",
"request": "launch",
"mainClass": "example.graphqlclient.Application",
"projectName": "graphql-client"
}
]
}
在 launch.json 中添加compounds
:
"compounds":[
{
"name":"server/client",
"configuration":["graphql-server","graphql-client",]
}
]
在調試選擇列表中選擇server/client
,然后開始調試。
詳細信息請參考Compound Launc 配置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.