Godot Version
4.4.1
Question
Hi,
I asked this on discord, but did not manage to fix my issue, so I try here.
TLDR
I want to export a project that uses a GDExtension in C++ with debug symbols. How to do that?
Context
A bit more context and what I tried so far:
I am trying to debug a strange crash on my project, it seems to happen sometimes when some C++ code from my GDExtension is called. When this happens, the backtrace shows only the address of the functions. I tried to export the project with debug symbols, but so far, I did not manage to do that. I managed to compile the GDExtension with debug information, but it seems that during the export the debug symbols are striped. The SConstruct file comes from the tutorial on GDExtension, and I compiled the extension with scons target=template_debug dev_build=yes debug_symbols=yes compiledb=true platform=linux
. I tried with many variations of this command line, but none worked.
I also tried to build Godot with debug symbols, it worked, now in the backtrace, I have the symbols for the engine, but still no symbols for the GDExtension part. Furthermore, I tried to compile the export template also with debug symbols. But so far, no luck.