Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to debug .NET Core apps inside Docker container #1683

Closed
formulahendry opened this issue Aug 4, 2017 · 12 comments
Closed

[Question] How to debug .NET Core apps inside Docker container #1683

formulahendry opened this issue Aug 4, 2017 · 12 comments

Comments

@formulahendry
Copy link

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!

@gregg-miskelly
Copy link
Contributor

Do you mean a Windows container? Or a Linux container running on a Windows host?

@formulahendry
Copy link
Author

Currently, I want to debug Linux container running on a Windows host.
Furthermore, I want to debug Windows container running on a Windows host.

@gregg-miskelly
Copy link
Contributor

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.

@formulahendry
Copy link
Author

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?

@WardenGnaw
Copy link
Contributor

@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

@formulahendry
Copy link
Author

Thanks @WardenGnaw !

@WardenGnaw
Copy link
Contributor

If you have any other questions feel free to reopen this issue. I will be closing it for now.

@formulahendry
Copy link
Author

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.)

@WardenGnaw
Copy link
Contributor

@formulahendry Which Windows container are you looking to use, windowservercore or nanoserver?

@formulahendry
Copy link
Author

nanoserver

@formulahendry
Copy link
Author

Open an separate issue #2195 to track the feature request of supporting debugging .NET Core apps in Docker Windows Container

@icenold
Copy link

icenold commented Aug 31, 2018

Too much drama just to even debug a hello world app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants