Hi - I’m trying to debug my project with XCode and I can’t for the life of me figure out how to turn off optimisations. I’ve tried adding ‘OptimizeCode = CodeOptimization.Never;’ to my XXX.Build.cs file and also using the pragma lines as well, and I still can’t get variables working.
The binaries folder does have two dylib files in it, one that claims to be DebugGame config and one that doesn’t. When I run the project via XCode and halt on a breakpoint the console tells me:
“UE4Editor-MessageTest.dylib was compiled with optimization - stepping may behave oddly; variables may not be available.”
Which tells me that although I seem to be building a debug dylib along with the normal one, I still seem to be binding with the optimised one.
How do I tell the build system to bind with the debug version ?
Thanks.