How to disable optimization for whole project C++ for debug?

You can put this flag to disable optimizations for the file you’re working in
PRAGMA_DISABLE_OPTIMIZATION