Testers needed. The below should work with FpDebug and the gdb based backend.
Preparation: Open the project
$(LazarusDir)/tools/unix_dbg_targetstarter/lazdebugtargetstarter.lpi and compile it. It should create an executable in its parent directory $(LazarusDir)/tools by the name of (all lowercase) "
lazdebugtargetstarter". This app must be present, and it must be in that directory.
If you use "
Run parametern" (from menu "Run"), and check "
Use launching application" and set it to your favourite terminal (should work for any terminal, if it can be started with an app to be run in it)
E.g.:
/usr/bin/gnome-terminal -t 'Lazarus Run Output' -- $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)
Important: It must have the "
$(LazarusDir)/tools/runwait.sh" part. It wont work without that exact part. And, the project to be debugged must be the very next part on the command line.
In that case the debugger should open that terminal, and debug your app running in that terminal.