C++ function not working

I would guess it’s just optimized by the compiler so it doesn’t hit the breakpoint, but it should stil run

If you want to disable optimization, you can wrap your functions with the macros PRAGMA_ENABLE_OPTIMIZATION_ACTUAL and PRAGMA_DISABLE_OPTIMIZATION_ACTUAL