From this doc, I see the C# extension supports remote debugging through different transports (include Docker).
And in this post, I see it could debug a .NET Core console app inside Docker on Mac.
I want to know whether there is any guideline to debug a .NET Core console app insider Docker on Windows? How could I set the launch.json. Thanks!
Do you mean a Windows container? Or a Linux container running on a Windows host?
Currently, I want to debug Linux container running on a Windows host.
Furthermore, I want to debug Windows container running on a Windows host.
Linux containers should work using a 'pipeTransport' of docker.exe.
Windows containers are not currently supported. You would need to use full VS for that.
Thanks @gregg-miskelly for the info!
Could you please kindly let me know how to use 'pipeTransport' to debug .NET Core console app in Linux containers? Or any doc I could refer to?
@formulahendry #1369 has an example of using pipeTransport for .NET Core app in a Linux container. We do not have any official documentation on Docker but someone wrote a guide at https://github.com/sleemer/docker.dotnet.debug
Thanks @WardenGnaw !
If you have any other questions feel free to reopen this issue. I will be closing it for now.
Hi @WardenGnaw , I am here again to ask whether we have plan to support debugging Windows container? Thanks! (BTW, seems I am not able to reopen the issue.)
@formulahendry Which Windows container are you looking to use, windowservercore or nanoserver?
nanoserver
Open an separate issue #2195 to track the feature request of supporting debugging .NET Core apps in Docker Windows Container
Too much drama just to even debug a hello world app.
Most helpful comment
@formulahendry #1369 has an example of using pipeTransport for .NET Core app in a Linux container. We do not have any official documentation on Docker but someone wrote a guide at https://github.com/sleemer/docker.dotnet.debug