Unable to start debugging session: Failed to detect dbgshim directory
I have an education version of Rider installed on an Arch Linux platform. I am trying to debug a project and have received this error message: "Unable to start debug session: Failed to detect dbgshim directory./usr/share/rider/lib/ReSharperHost/linux-x64/dotnet/dotnet exec /usr/share/rider/lib/ReSharperHost/JetBrains.Debugger.Worker.exe --mode=client --frontend-port=36321 --plugins=/usr/share/rider/plugins/rider-unity/dotnetDebuggerWorker"
The solution builds and runs/debugs in Visual Studio. Could you please advise some guidance....
dotnet --info
.NET Core SDK (reflecting any global.json):
Version: 3.1.201
Commit: b1768b4ae7
Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/3.1.201/
Host (useful for support):
Version: 3.1.3
Commit: ed88943d24
.NET Core SDKs installed:
3.1.201 [/usr/share/dotnet/sdk]
.NET Core runtimes installed:
Microsoft.NETCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Please sign in to leave a comment.
Hi Tim,
I had the same issue, also on Arch Linux.
Error message is misleading, try running this for more details.
In my case, I had to install aspnet runtime to fix this.
Cheers
Thanks for the comment. Unfortunately this hasnt worked. I have the latest sdk installed so the runtime was included. I reinstalled it but I'm still getting the same error. Great to know there are people out there that try to help.
This ticket has been sitting here for nearly 3 weeks and has had no attention from the support people at Jetbrains.
No worries, I know how annoying these issues can be.
Did you get any new info after "dotnet run"?
Experiencing the same issue on Ubuntu 20.04. I have the sdk installed, and have tried multiple configs to get this to work with no success.
Jack J Barger,
First of all, is Rider able to run your application without debugging it?
Also, may I ask you to collect the logs again with the
Debugger
andRun
trace scenario turned on?dbgshim directory not found
message;Help | Collect Logs
;Please attach the log bundle to a new support request.
Thank you in advance!
We've reproduced the problem, and, hopefully, we'll be able to fix it in Rider 2020.2. Please watch the corresponding issue on YouTrack for updates: https://youtrack.jetbrains.com/issue/RIDER-45519
Thanks Julia and let me know if you still would like the debug logs. I ended up using another machine to finish the project I had been working on, but am happy to reproduce the error if needed.
In my case, I had to right click on the project -> properties and select "target framework" the one that you have installed on your PC. I hope this helps.
I'm still getting this problem on 2020.3
How much longer for a fix?
Unable to start debug session: Failed to detect dbgshim directory."C:\Program Files\JetBrains\JetBrains Rider 2020.3.3\lib\ReSharperHost\JetBrains.Debugger.Worker64c.exe" --mode=client --frontend-port=52715 "--plugins=C:\Program Files\JetBrains\JetBrains Rider 2020.3.3\plugins\rider-unity\dotnetDebuggerWorker"
All I do to reproduce is click "Debug" on an existing netcoreapp3.1 project
Rsryanstephen
A bunch of problems related to detecting dbgshim directory are fixed in Rider 2021.1. Could you please try the latest EAP build and check if debugging works for you?
Thanks Julia all is well