[Rider] I can't debug players built with another machine than mine

Hello, this is kind of a follow-up of this thread : I can't debug IL2CPP build with Rider

I am unable to debug players built with another machine than mine, on Rider.

It seems Rider is able to attach itself to the running player, but the following error is displayed on my breakpoints :


[someScript].cs it not found among the loaded symbol documents

I don’t know anyone at my studio who is able to debug/break in this use case.

I feel like this is a very common use case in game studios, with build servers releasing builds periodically.
Is this a known issue ? Are there some workarounds ?

Jetbrains redirected me to this ticket :
https://youtrack.jetbrains.com/issue/RIDER-66147

Thanks !

A link to this post has been added to the corresponding issue by Jetbrains :
https://youtrack.jetbrains.com/issue/RIDER-66147

If you want this issue fixed, please upvote it on YouTrack to increase awareness :slight_smile:

Hi all. Just to let you know that we’re aware of the issue, and the impact it can have. We haven’t been able to address this in Rider 2022.1, which is just about to be released, but it is scheduled for the following major release - 2022.2, due in a few months. There is a comment on the issue linked above with a couple of things you can try as a workaround, but they’re not ideal - a second copy of the source in the same location, or links/junction points in the file system. Apologies for the inconvenience, we’ll get this supported as soon as we can.

2 Likes

@citizenmatt is there any update on the bug? I’ve hit the same issue, where I have our games built via a CI server and when I try to debug it on my machine, I can’t with Rider. Tried and tested in Rider 2022.2.2 and 2022.2.3 and I can’t debug in either version, which is quite detrimental to workflows of course.

Would be happy to see a fix soon!

If you’re seeing this when working with Unity then try clicking the “Regenerate Project Files” button in Unity’s Preferences->External Tools, and also maybe clearing all the Rider cache.

2 Likes

Did you find solution how to fix this issue? It happens to me after upgrading from Unity 2021 LTS to 2022 LTS (extact version 2022.3.24f1). I have regenerated project files, upgraded Rider to the latest version 2024.1.1, cleared Rider cache and nothing helped

When moving a Unity library (XR Interaction Toolkit) from the (Project)/Library/PackagesCache/ to the (Project)/Packages/ folder on Windows 10 Enterprise / Unity 2022.3.31 / Rider 2022.2.3, the following steps enabled me to debug the XR Interaction Toolkit files made by Unity.

  • Quit Rider.
  • Open Edit > Preferences… from the main menu in Unity.
  • Choose External Tools.
  • Under Generate .csproj files for:, check everything.
  • Click Regenerate project files.
  • Reopen the .cs file in Rider.

This is basically what other people had suggested, but I wanted to lay out each step that worked for me.