It works as i386-win32 but not as x86_64-win64! (Lazarus i386_win32 with x86_64-win64 crosscompiler)
Not sure what you mean?
I tested only with native 64 bit fpc. I did no cross compiling.
If I build my 64 bit fpc (and the RTL, which may be what matters) with
-g- -O4 then the debugger stops on the wrong location
and if fpc was build with
-gl -O1 the debugger works
I have not tested which of the 2 flags makes the difference.
---------
The Project was build in both cases with the same settings, as set in the files provided by you.