core icon indicating copy to clipboard operation
core copied to clipboard

Remote Debugging with Docker?

Open tonysneed opened this issue 10 years ago • 5 comments

Does .NET Core supports remote debugging? I seem to recall a part of Scott Hanselman's Build demo where he used the VS Tools for Docker to remote debug into a Docker container. But I can't remember if the container was running .NET Core. I'd be grateful for any information on this.

I cross-posted my question here on the omnisharp-vscode repo, but I think it's probably more relevant to the .NET Core repo.

tonysneed avatar Apr 19 '16 08:04 tonysneed

He demonstrated a time zone issue, it's C# code running on Linux.

pawchen avatar Apr 19 '16 08:04 pawchen

Yes, I thought it was a nice motivation for developing apps with source code mapped to a Docker container volume. I'm just trying to piece together the debugging story.

tonysneed avatar Apr 19 '16 08:04 tonysneed

@tonysneed I too am trying to piece together a nice dev workflow for working with docker ... would you care to share your Dockerfile that shows how to map the container volume?

Aside from the question, also wanted to comment so that I get notifications for this issue :)

joelmartinez avatar May 05 '16 13:05 joelmartinez

Cool, yes happy to share. I have nice demo of using dotnet-watch with Docker: https://github.com/tonysneed/Demo.DotNetWatchDocker

It would be cool to be able to attach a debugger and set breakpoints. :)

tonysneed avatar May 05 '16 13:05 tonysneed

Looks like @gregg-miskelly has already answered this question in OmniSharp/omnisharp-vscode#220.

tzwlai avatar Jul 14 '16 16:07 tzwlai