dotnet / dotnet/vscode-csharp

Debugging .NET Core inside a Docker Container from Windows host - Error: Input connection was closed. Aborting the debug session.

Open
#1,732 13 comments 0 reactions 1 assignee Claimed by @WardenGnaw View on GitHub
Debugger OmniSharp
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

## Environment data
**`dotnet --info` output:**
```
.NET Command Line Tools (2.0.0)

Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9

Runtime Environment:
OS Name: Windows
OS Version: 10.0.15063
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.0.0\

Microsoft .NET Core Shared Framework Host

Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
```
**VS Code version:**
![image](https://user-images.githubusercontent.com/12956835/29610293-b277cb3e-87f1-11e7-85f8-5c0cdf056213.png)

**C# Extension version:**
`1.12.1`

**Docker for Windows version:**
`Version 17.06.1-ce-win24 (13025)`

## Steps to reproduce
I have pushed a test repo to GitHub here - https://github.com/lewislabs/test_debug/
Clone this repo and follow the steps for running the app in the readme [here](https://github.com/lewislabs/test_debug/tree/master#running)

## Expected behavior
The application starts up and the breakpoint is hit.

## Actual behavior
I get the following output in the debug console and an error popup in VS Code.
```
Starting: "docker" exec -i test-debug /vsdbg/vsdbg --interpreter=vscode
-> (C) {"command":"initialize","arguments":{"clientID":"vscode","adapterID":"coreclr","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true},"type":"request","seq":1}
Error from pipe program 'docker': Error: Input connection was closed. Aborting the debug session.
<- (ERROR) {"request_seq":2,"success":false,"command":"launch","message":"The pipe program 'docker' exited unexpectedly with code 0.","body":{"error":{"id":1000,"format":"The pipe program 'docker' exited unexpectedly with code 0."}},"seq":1,"type":"response"}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.