diff --git a/doc/arch/sandbox.rst b/doc/arch/sandbox.rst index 246ab5b380a2ac040c961bac2d0a74ee53accf56..bfc9cc6a139a85a8cbce7a4f027fd568988e6d74 100644 --- a/doc/arch/sandbox.rst +++ b/doc/arch/sandbox.rst @@ -477,6 +477,9 @@ board_init_f() and board_init_r(). This approach can be used on normal boards as well as sandbox. +For debugging with GDB or LLDB, it is preferable to reduce the compiler +optimization level (CONFIG_CC_OPTIMIZE_FOR_DEBUG=y) and to disable Link Time +Optimization (CONFIG_LTO=n). SDL_CONFIG ----------