dotnet / dotnet/vscode-csharp

Upgrading to .NET core 2.1 or higher makes the vbdbg to fail on attaching

Open
#3,795 4 comments 0 reactions 0 assignees View on GitHub
Debugger OmniSharp Triaged
Dominant language
TypeScript
Stars
3.1k
Forks
737
Avg merge
17h 56m
Merged PRs (30d)
21

Description

Prerequisites:
1. App running on docker contained Service fabric cluster on Ubuntu 16.04
2. Previously it worked to debug .net 2.0 apps via piperProgram: docker
3. Upgrading to a .net core version higher than 2.2 makes the debugger to fail to attach.

```
{
"name": ".NET Core Docker Attach",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickRemoteProcess}",
"pipeTransport": {
"pipeProgram": "docker",
"pipeArgs": [ "exec", "-u", "sfappsuser", "-i", "dhcloud_sfcluster_1" ],
"debuggerPath": "/vsdbg/vsdbg",
"pipeCwd": "${workspaceRoot}",
"quoteArgs": false
},
"logging": {
"engineLogging": true
},
"requireExactSource": false
},
```

Logs

```
{"seq":9,"type":"response","request_seq":6,"success":false,"command":"configurationDone","message":"Failed to attach to process: Unknown Error: 0x80131c08"}
```

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.