I never got that error.
I have no idea which debugger to use.
https://wiki.lazarus.freepascal.org/Debugger_Setup#Choosing_the_correct_debugger_backendGdb supports more platforms/architectures (FpDebug only support Intel/AMD and Win/Linux)
FpDebug however is more feature-rich and more stable.
https://wiki.freepascal.org/Debugger_StatusWhenever new project is created it demand to be used one of three debug info formats
If that refers to the dialog that pops up before RUN, then you are using FpDebug (and that is good/correct).
With FpDebug it is recommended to use Dwarf-3
With GDB it is better to choose Dwarf-2 with sets
You can change that once in the project settings, and before closing the project settings dialog check the checkbox (bottom left corner) "Set compiler options as default". Then new projects will have it (ideally create the 2 buildmodes before doing this)
With even simplest app, SIGSEG error raised at end of execution.
That is where I will need more info. Because it does not happen when I debug something (on Linux, though a different distro / several other distros).
In general, please make sure that for debugging you compile your project with
optimization OFF (or at max level 1).
First of all the exact text of that exception dialog, or a screen shot.
It could be either (
similar to either of)
- Project1 raised on exception (issued by the debugger)
- Lazarus / Access violation (the IDE itself crashed)
Also could you open a terminal (console), and run Lazarus from that terminal?
(If you have packages installed then you may need to find the lazarus exe in ~/.lazarus / or try startlazarus, but I am not sure the latter will do)
lazarus --debug-log=LOG_FILE --debug-enable=DBG_VERBOSE,DBG_WARNINGS,DBG_ERRORS
DBG_STATE,DBG_EVENTS,DBGMI_QUEUE_DEBUG,DBG_FPDEBUG_VERBOSE,FPDBG_COMMANDS,FPDBG_THREADS,FPDBG_QUEUE,DBG_DATA_MONITORS,DBG_THREAD_AND_FRAME,DBG_CMD_ECHO,DBG_CMD_ECHO_FULL
Then upload the LOG_FILE please.
And if there is any output to the console: copy it and paste it here
Thank you.