Fix for Linux's version of StackTrace
building source code wxWidgets mkdir buildgtk && cd buildgtk ../configure --with-gtk=3 --disable-shared --enable-debug --disable-optimise --enable-debug_gdb --enable-backtrace --enable-debugreport --without-subdirs make -j12 (number may be diff on your system check nproc)
cd ~ (home dir) echo "set debuginfod enabled on" > .gdbinit
...
CHECK MY REPO FOR FULL GUIDE. https://github.com/Linar46/StackTrace
I think you need to add this code to all CMAKE files by default:
set(CMAKE_BUILD_TYPE Debug)
add_compile_options(-g -O0 -rdynamic -no-pie -fno-omit-frame-pointer)
add_compile_definitions(wxDEBUG_LEVEL=2)
AND FOR LINUX MAKES THIS CODE: https://github.com/Linar46/StackTrace/blob/main/CMakeLists.txt
check prev commits, last updates(commits) not suited for real world debugging(too slow).