Skip to content

Commit 48897a3

Browse files
committed
Add tips for disabling compiler optimization in debug guide
Signed-off-by: huyang531 <yanghuu531@gmail.com>
1 parent bf23aad commit 48897a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/guides/debugging.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ TThe build system always creates two image files for each selected platform:
8282
* one that includes debugging information and symbols (`.dbg` file extension)
8383
* one that does not
8484

85-
Before using GDB, go to the configuration menu under `Build Options` and select a `Debug information level` that is bigger than 0.
85+
Before using GDB, make sure compiler optimization is turned off: in the configuration menu, go to `Build Options` --> `Optimization level` and select `No optimizations`.
86+
Then, under `Build Options`, select a `Debug information level` that is bigger than 0.
8687
We recommend 3, the highest level.
8788

8889
<Image

0 commit comments

Comments
 (0)