Identifier not available, possibly due to compiler optimizations, but optimization is off
Hi there,
this is in Rider 2026.1 with C++ in Unreal Engine 5 on Windows. I can't figure out how to turn off compiler optimizations so I see all fields when debugging. I frequently stumble into “identifier <id> not available, possibly due to compiler optimizations”, but I have OptimizeCode = CodeOptimization.Never; in my Projectname.Build.cs and Rider uses the DebugGame configuration for the Editor target. What did I miss? I'd appreciate some help.
Please sign in to leave a comment.
WildRikku depending on your project configuration, you might also need to disable PCH in the module you are debugging. Meaning both options should be present in your
*Build.cs:If the issue persists, please collect additional information and share it with us:
Thank you. I have created a bug ticket since unfortunately, setting PCHUsageMode and rebuilding did not help either.
https://youtrack.jetbrains.com/issue/RIDER-138486/Identifier-not-available-possibly-due-to-compiler-optimizations-but-optimization-is-off