FWIW, if you use mbed-cmake, you can add the defines representing those options conditionally in the CMake build script based on build configuration. For example:
add_compile_definitions($<$<CONFIG:Debug>:MBED_HEAP_STATS_ENABLED=1>)
FWIW, if you use mbed-cmake, you can add the defines representing those options conditionally in the CMake build script based on build configuration. For example:
add_compile_definitions($<$<CONFIG:Debug>:MBED_HEAP_STATS_ENABLED=1>)