On Sat, Jul 25, 2020 at 4:09 AM Fotis Panagiotopoulos
<f.j.pa...@gmail.com> wrote:
>
> Perfect! kconfig-tweak is what I was looking for. I will give it a try
> later today.
>
> However at this point I would like to ask. How is a debug build defined for
> NuttX?
> Surely there are configs that can be changed. But is there any system-wide
> debug option?
> Is NDEBUG defined in any case?
>
> For example I see CONFIG_STM32_DISABLE_IDLE_SLEEP_DURING_DEBUG which is
> active when CONFIG_DEBUG_SYMBOLS is also active.
> So, I guess CONFIG_DEBUG_SYMBOLS is our general "debug" macro?
>
> My application will most probably need to know whether this is a debug
> build or not.

Just about all the explicitly debug functionality, it is all behind
CONFIG_DEBUG_FEATURES
so if you wanted to indicate if the build had debug functionality
enabled that would probably be
the variable to use.  That said there are a few exceptions including
these which may also be
of interest to you.
CONFIG_STACK_COLORATION
CONFIG_DEBUG_NOOPT

Debug is a very broad word depending on what you are doing, for
instance I frequently include the nsh when I am developing along with
things like procfs, but I might not have that enabled in the "final"
build.

--Brennan

Reply via email to