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.

0
2 comments

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:

PCHUsage = PCHUsageMode.NoPCHs;
OptimizeCode = CodeOptimization.Never;

If the issue persists, please collect additional information and share it with us:

  • Enable CppDebugger trace scenario via Help | Diagnostic Tools | Choose Trace Scenario
  • Reproduce the issue
  • Invoke Help | Report a Bug and attach the logs when prompted. When filing an issue, please note the symbol name you are trying to evaluate
  • Disable all trace scenarios under Help | Diagnostic Tools | Choose Trace Scenario
0

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

0

Please sign in to leave a comment.