Samsung / netcoredbg

NetCoreDbg is a managed code debugger with MI interface for CoreCLR.
MIT License
780 stars 101 forks source link

"Unverified breakpoints" in a docker setup #24

Open Rakiah opened 5 years ago

Rakiah commented 5 years ago

Hello, thank you for the great work first,

i've been having problems trying to make netcoredbg with VS Code in a docker setup with .NET Core 2.2 here is my launch.json config

 {
             "name": "APIGateway_Attach_Docker",
             "type": "coreclr",
             "request": "attach",
             "sourceFileMap": {
                 "/src": "${workspaceRoot}"
              },
             "processId": "${command:pickRemoteProcess}",
             "pipeTransport": {
                "debuggerPath": "/netcoredbg/netcoredbg",
                "pipeProgram": "docker",
                "pipeCwd": "${workspaceFolder}",
                "quoteArgs": false,
                "pipeArgs": [
                     "exec",
                     "-i",
                     "constellation_apigateway"
                 ]
             }
}

It seems like it correctly attach because if I hit pause here: image It will correctly pause the running process and break where it paused: image however when trying to attach a breakpoint I get an "unverified breakpoint" image Do you know if i'm doing anything wrong ? I've been using my exact same setup that is working with vsdbg with a Microsoft Visual Studio code distrib

alexander-aksenov commented 5 years ago

Can you attach log files? To make them, add to the end of "debuggerPath" "--log=file --engineLogging=" parameters. Two log files should appear, one in temp folder and have the name like "netcoredbg___

Rakiah commented 5 years ago

I dont know If I'll be able to do it this week but I'll try this weekend

Rakiah commented 4 years ago

i've specified it this way: "debuggerPath": "/netcoredbg/bin/netcoredbg --log=file --engineLogging=/logs/", but i cannot find the log files, I've searched on the container and on the host but nothing comes-out