{"id":27769425,"url":"https://github.com/vladimirakopyan/dockerdotnetdebug","last_synced_at":"2026-04-18T02:07:27.519Z","repository":{"id":117053190,"uuid":"132285093","full_name":"VladimirAkopyan/DockerDotnetDebug","owner":"VladimirAkopyan","description":"Debuggable docker container for .Net Code, use with VS2017 or VSCode","archived":false,"fork":false,"pushed_at":"2018-06-08T13:31:19.000Z","size":1547,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-29T20:48:53.689Z","etag":null,"topics":["docker","docker-image","dotnet-core","ssh","visual-studio","visual-studio-2017","visual-studio-code","vscode","vsdbg"],"latest_commit_sha":null,"homepage":"https://blog.quickbird.uk/debug-netcore-containers-remotely-9a103060b2ff","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VladimirAkopyan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-05T21:15:36.000Z","updated_at":"2019-04-02T21:49:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"13e4231e-953e-474c-8f05-6fcd823fd765","html_url":"https://github.com/VladimirAkopyan/DockerDotnetDebug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VladimirAkopyan/DockerDotnetDebug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirAkopyan%2FDockerDotnetDebug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirAkopyan%2FDockerDotnetDebug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirAkopyan%2FDockerDotnetDebug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirAkopyan%2FDockerDotnetDebug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VladimirAkopyan","download_url":"https://codeload.github.com/VladimirAkopyan/DockerDotnetDebug/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VladimirAkopyan%2FDockerDotnetDebug/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-image","dotnet-core","ssh","visual-studio","visual-studio-2017","visual-studio-code","vscode","vsdbg"],"created_at":"2025-04-29T20:48:46.486Z","updated_at":"2026-04-18T02:07:27.513Z","avatar_url":"https://github.com/VladimirAkopyan.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DockerDotnetDebug\nA remotely debuggable docker container, use it as your base runtime in desperate times, when you need to debug somehting remotely and you just can;t do all the tests locally. \n\n\n# Quickstart\n\n1. `docker run -d -p 2222:2222 -p 5000:5000 clumsypilot/dotnetdebug:asp-debug-sample`\n2. Open `Localhost:5000` and verify thee website is running. \n3. Clone the Repo and open project DotnetDebug in VS2017\n4. Setup a remote connection over SSH\n5. Set a breakpoint in `DebugSample/Pages/Index.cshtml.cs`\n6. Start debugger and reload page! \n\n![Debugging In Action](Images/DebuggingInAction.png \"Debugging In Action\")\n\nAlternatively, debug this container while it's running on a kubernetes cluster using \n```\nkubectl port-forward \u003cPOD-NAME\u003e 2222\n```\nFor details, read my blogpost: \nhttps://blog.quickbird.uk/debug-netcore-containers-remotely-9a103060b2ff\n\n# Main Files\n* **DebugSample** - a sample Asp.Net Core 2.0 applicaitonconfigured for debugging. It will serve a static page on `localhost:5000`\n* **DebugASP.Dockerfile** - a dockerfile that builds a container with the asp applicaiton\n* **Diagram.xml** - Draw.io diagram to illustrate how debugging .Net Core applications works\n* **DotnetDebug.Dockerfile** - a dockerfile for buildings a debuggable base container for .Net Core applications. Used as base in **DebugASP.Dockerfile*\n* **StartSSHAndApp.sh** - a script that starts two processes in **Docker**, the **OpenSSH** server and a **.Net Core** application\n* **authorized_keys** - keys authorised for connection to the **OpenSSH** server, config file that must be copied to `root/.ssh/authorized_keys` into the container. \n* **privateKey.openssh** and **privateKey.ppk** - OpenSSH Keys for **Putty**, corresponding to the **authorized_keys*\n* **sshd_config** - a configuration file for OpenSSH server, that must be copied to `/etc/ssh/sshd_config`\n* **DebugSample/MIEngineConfig/MIEngineAttach.json** - A configuration file for **MiEngine**, used in **Visual Studio 2017** to attach to a docker container for debugging.\n* **DebugSample/.vscode/launch.json** - A configuration file for **Visual Studio Code** with an **Omnisharp Plugin** to attach to a remote docker container for debugging\n* **DebugSample/Pages/Index.cshtml.cs** - set a breakpoint here on `public void OnGet()` and refresh the index page. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladimirakopyan%2Fdockerdotnetdebug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvladimirakopyan%2Fdockerdotnetdebug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvladimirakopyan%2Fdockerdotnetdebug/lists"}