Skip to content

Steps for container debugging #270

@gerneio

Description

@gerneio

For VS Code, here are steps you can follow for debugging a .NET Core project on your local dev machine within a container. Works well, with the caveat that it needs a dockerfile (which can easily be auto-generated using the extension). When performing step #4 from that link, it will add a launch option and a series of tasks for docker run/build. I tried modifying these steps to get it to switch out the build process in favor of the built in SDK flavor via dotnet publish, however there were problems since the docker-run task mounts the /app directory, which was being used by the dotnet publish command (at least that's as much as I can decipher w/o seeing the actual generated dockerfile).

Either way, I think some updated docs could be useful for how to setup for local dev & debugging with VS Code and VS Studio. After spending a couple hours on it, I gave up and switched to just continuing to use the traditional dockerfile approach as explained in the link above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: IntegrationsWork done to integrate with other tools, especially IDE toolingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions