Skip to content

Commit 37cabb6

Browse files
author
Amanda Butler
authored
Merge pull request #1195 from AGlass0fMilk/add-debug-profile-note
Add debug build profile note
2 parents daae00f + b91cdce commit 37cabb6

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+
<span class="notes">**Note:** The debug profile uses optimization flags that may cause unwanted behavior during debugging (such as out-of-order jumps and optimized-out variables). If this occurs, you can set the compiler to the lowest possible optimization setting (for example, change `-Og` to `-O0` for GCC). See your toolchain's documentation for more information.</span>
22+
2123
## Release
2224

2325
- Smallest code size and still fast.

0 commit comments

Comments
 (0)