Skip to content

Commit ef8b2f4

Browse files
committed
Updated build profiles documentation to point out possible issues when debugging with the default debug profile.
1 parent c449701 commit ef8b2f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/tools/CLI/build_profiles.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Arm Mbed OS 5 defines three collections of toolchain flags used during the build
1818
- Easy to step through code with a debugger.
1919
- Disabled sleep mode.
2020

21+
**NOTE: The debug profile uses the optimization flags that may cause unwanted behavior during debugging (eg: out-of-order jumps, optimized-out variables). If this occurs, you can try setting the compiler's optimization setting to the lowest possible (ie: for GCC, change `-Og` to `-O0`). See your toolchain's documentation for more information. **
22+
2123
## Release
2224

2325
- Smallest code size and still fast.

0 commit comments

Comments
 (0)