Can't debug .NET Core in a docker container on Linux
After rebooting, I get an error while trying to debug any docker containers.
Started a process for debugging, but no CoreCLR runtime was seen to be loaded within the 00:00:16 time limit.
I can run it without the debugger and the code runs fine but in with debugger the container dies.
My only solutions have been returning to prior backups of the VM I work in or rebuilding the entire system. Reinstalling Rider, dotnet core, docker and mono did not solve the issue.
Logs also show "Environment variable 'DEBUGGER_PARENT_PROCESS_PID' is not defined => do not watch parent process to die"
Please sign in to leave a comment.
Hello Connor,
I am very sorry to hear that you have faced with such difficulties. Could you please collect the logs with enabled trace scenario for Debug:
Please attach the resulting log bundle here. Please also let me know the .net core version. Thank you in advance!
Hi Olga, thanks for the quick response, hopefully we can get me back to it without having to go back to VS!
Is there an email I can send the logs to instead? I rather not post logs here with the potential of sensitive data
Hello Connor,
I hope the same. You can upload the logs with submitting a Support request (Help | Contact Support) or you can create an issue on YT: https://youtrack.jetbrains.com/newIssue and add logs to it.
What's your SLA Olga? I submitted a ticket yesterday at 3:30 with no response. Losing my mind here without a debugger.
Just for anyone else that may be watching this issue, JetBrains told me it's an issue with Ubuntu. I'm still waiting to hear what distributions the debugger for docker works on so I can workaround it for now. They started up an issue here too. https://youtrack.jetbrains.com/issue/RIDER-33004
Hello, all.
Facing the same issue with Alpine based images. Any updates on this issue?
As it was stated in the original issue RIDER-33004, we were not able to reproduce the issue for investigating the possible reason for it. Please make sure you are running the latest available Rider release which is 2019.3.1 now and open a new issue on our bug tracker with attaching the diagnostics information. Thank you in advance!
Hello, all.
I have the same problem in the current version RIDER 2020.3.2. Image is
And exception for DEBUG run is:
Hejduk Jiri, please attach the full log bundle along with dockerfile with a new issue on our tracker, so we could take a closer look. Thank you in advance!
Hi,
I am facing the same issue in the current version RIDER 2020.3.3.
I start up the containers from a docker-compose.yml file and the container of interest is started with a dockerfile that contains a "builder" image specification and the actual target image. The source of the builder image is
and the source of the target image ist
Both files, the docker-compose.yml and the Dockerfile are not located within the project folder but two levels above in the root folder of the repo.
When I start debuggin with the "Docker-compose" Run/Debug Configuration all images will be build and all containers will be started. Unfortuantely the container that contains runs the process I want to debug, dies immediately because of the exception mentioned above.
Here is my log output:
Hello Christian, unfortunately the information provided is not not enough to tell the reason for the issue, please upload the complete log bundle, dockerfile, docker-compose files with a new issue on our tracker. You can set up visibility to only JB representatives there. Thanks in advance!