Omnisharp-vscode: [Question] How to debug .NET Core apps inside Docker container

Created on 4 Aug 2017  路  12Comments  路  Source: OmniSharp/omnisharp-vscode

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!

Debugger Question

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

All 12 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jrmcdona picture jrmcdona  路  3Comments

kiminuo picture kiminuo  路  3Comments

tstivers1990 picture tstivers1990  路  3Comments

ghost picture ghost  路  3Comments

mshinnie picture mshinnie  路  3Comments