Skip to content

Commit

Permalink
guide/debugging: Add tips for disabling compiler optimization
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Hu <[email protected]>
  • Loading branch information
huyang531 authored and StefanJum committed Sep 28, 2024
1 parent 652971d commit 24440d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion content/guides/debugging.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ TThe build system always creates two image files for each selected platform:
* one that includes debugging information and symbols (`.dbg` file extension)
* one that does not

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

<Image
Expand Down

0 comments on commit 24440d5

Please sign in to comment.