Skip to content

Commit

Permalink
Add tips for disabling compiler optimization in debug guide
Browse files Browse the repository at this point in the history
Signed-off-by: huyang531 <[email protected]>
  • Loading branch information
huyang531 committed Jul 11, 2024
1 parent bf23aad commit 48897a3
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 48897a3

Please sign in to comment.