Debug system libraries in docker container

Answered

Is it possible to debug system library code running in a docker container (Step Into or set breakpoint in decompiled sources)?

What I tried:

  1. Setup new console application
    dotnet new console -o Test
  2. Setup Dockerfile
    FROM mcr.microsoft.com/dotnet/aspnet:3.1
    WORKDIR /app
    COPY . ./
    ENTRYPOINT ["dotnet", "Test.dll"]
  3. Setup Build/Debug configuration and start debugging. Breakpoint on
    Console.WriteLine("Hello World!");
    is getting hit, but I can't step into the Console.WriteLine call, whereas while debugging locally and not in a docker container I can.

 

0
2 comments

Hello Michael,

There is a similar complaint on our tracker: RIDER-56729. Would you be so kind to collect the logs with Trace for Debug as it described in the issue and attach the resulting log bundle to it? Please keep watching the issue on tracker, it is handled by the dedicated developer there.

0
Avatar
Permanently deleted user

Hi Olga

Thank you very much for the update, just noticed on the linked issue that it is not possible at the moment.

0

Please sign in to leave a comment.