I’ve been dealing with this issue for some time now but its making debugging incredibly difficult. I am using system workbench for stm32 with a segger j-trace debugger. All of my variables are optimized out despite having the -O0 or -Og flag set in project>properties>C/C++ Build>Tool Settings>Optimization I also have -g3 set under Debugging however all of my variables are still not showing. Has anyone experienced/solved a similar issue?