If you can compile with "line info": This should be in Project Options/Compilation + Linking ? (I have only optimization levels)
Otherwise: debugging with Dwarf is enabled (giving me a file with *.dbg extension)
Strip debug info: is not clear to me.
In the Run dialogue I have no option for "get address"
On the target MCU I get Heap Traces that are not meaningful for me.
*.dbg => external debug info.
That is only supported by some tools.
If you disable "external debug info" then you get a bigger exe instead.
If you can copy that big exe to your raspi => use it as it is.
If you can't (and only if you can't), there is a tool called "strip" in the fpc folder. It will remove the debug info.
If you must do that, keep a copy of the big exe. You will need it to "resolve" addresses.
"run / get address" => run: the english verb, not the menu.
=> run your app on the target, and wait for it to print the address of the error (or ideally it prints a trace, just like the heaptrc).
=> A trace like this will work in "leak and traces".
If you copied the "big exe" to your raspi, you may have lines on the trace already.
If not, try "leak and traces" (view menu).
Once the error happened, you need only the trace of the error.
Because of the crash, some memory is not freed => that is why you get the heap traces.
However, if you get heaptraces, without the crash, then you have a memory leak.