How to debug a .NET Core app running in Linux Docker container from Visual Studio

后端 未结 2 1336
隐瞒了意图╮
隐瞒了意图╮ 2021-02-03 12:08

I have my own hand written Dockerfile/docker-compose files. I start containers from command line. Now I want to attach VS2017 (not VSCode) to my app inside a Docker (Linux-based

2条回答
  •  不要未来只要你来
    2021-02-03 12:41

    As of today, if you are using visual studio, you can use their official support.

    You just need to have installed docker and add the support for docker projects Project->Docker support.

    This creates a new project with a docker compose and a dockerfile to your project, then VS links this and allows debbuging!

提交回复
热议问题