Page 1 of 1

Decode backtrace automatically IDF Eclipse

Posted: Tue Mar 11, 2025 8:07 pm
by greycon
I'm driving myself crazy here, please help !

I have an IDF project from last year, developed in Eclipse IDF, and if I encounter an unhandled exception crash, the ESP-IDF-Serial Monitor windows in Eclipse automatically decodes the Backtrace, like this;

0x4017c076: _vfprintf_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1521
0x40170331: fprintf at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fprintf.c:54 (discriminator 1)
0x400d9f62: statFile(frogfs_fs_t*) at /Users/concunningham/Documents/git-repos/PharmaSlave/PSMonitor/main/main.cpp:133 (discriminator 1)
0x400da11d: initSubsystems() at /Users/concunningham/Documents/git-repos/PharmaSlave/PSMonitor/main/main.cpp:193

Now I am working on a new prioject, and try as I might, I can't make this same behavior happen. All I get is the register dump, and a backtrace which is not decoded, for example:

Backtrace: 0x400014fa:0x3ffbf4f0 0x4017c076:0x3ffbf500 0x40170331:0x3ffbf820

Does anyone know how to enable the automatic decoding of the backtrace? I've a vague memory it was some clever plugin or filter but I can't find it on google anyplace.

Re: Decode backtrace automatically IDF Eclipse

Posted: Tue Mar 11, 2025 8:56 pm
by greycon
OK, I "Solved" it by comparing the sdkconfig for the old (working) program and my new one. The key was in the logging format:
CONFIG_LOG_COLORS=y

This caused the IDF Monitor output to appear. (In orange).

Without this setting, I don't see any IDF Log output, for some reason. Perhaps it's there in white.

Thanks,
Con