VS2019 Docker 启动设置缺少 "Start Debugging" 操作
VS2019 Docker Launch Settings Missing "Start Debugging" action
VS2019 Professional 缺少“开始调试”操作项,这使我无法在我的 docker 容器中进行调试。
我已经创建了一个 launchSettings.json
文件来显式设置 StartDebugging
操作,但是配置文件中仍然省略了它,并且在尝试 运行 时调试器没有附加调试模式。
{
"profiles": {
"Docker Compose": {
"commandName": "DockerCompose",
"serviceActions": {
"data": "StartDebugging",
"api": "StartDebugging",
"graphql": "StartDebugging",
"kafka": "StartWithoutDebugging"
},
"commandVersion": "1.0"
}
}
}
团队中的另一位成员拥有与我相同的 IDE 版本,但在调试模式下 运行 连接调试器时没有任何问题。我们比较了我们的 VS2019 安装并确认我们也安装了相同的工作负载,但他有这个选项。
为什么“开始调试”操作会丢失,我该如何恢复它?
我遇到了同样的问题并看到了这个帖子:docker compose doesn't work debugging. The workaround worked for me: disable Docker-Compose V2 support by running docker-compose disable-v2
and then restart Docker Desktop. This is apparently caused by the recent change in docker compose v2 behavior; see Output of "docker compose config" does not contain full path to context
VS2019 Professional 缺少“开始调试”操作项,这使我无法在我的 docker 容器中进行调试。
我已经创建了一个 launchSettings.json
文件来显式设置 StartDebugging
操作,但是配置文件中仍然省略了它,并且在尝试 运行 时调试器没有附加调试模式。
{
"profiles": {
"Docker Compose": {
"commandName": "DockerCompose",
"serviceActions": {
"data": "StartDebugging",
"api": "StartDebugging",
"graphql": "StartDebugging",
"kafka": "StartWithoutDebugging"
},
"commandVersion": "1.0"
}
}
}
团队中的另一位成员拥有与我相同的 IDE 版本,但在调试模式下 运行 连接调试器时没有任何问题。我们比较了我们的 VS2019 安装并确认我们也安装了相同的工作负载,但他有这个选项。
为什么“开始调试”操作会丢失,我该如何恢复它?
我遇到了同样的问题并看到了这个帖子:docker compose doesn't work debugging. The workaround worked for me: disable Docker-Compose V2 support by running docker-compose disable-v2
and then restart Docker Desktop. This is apparently caused by the recent change in docker compose v2 behavior; see Output of "docker compose config" does not contain full path to context