I know i cannot use the run parameters and execute on an external xterm with the gdb in linux.
Why can't you? I have already done it and it works well. Of course, using the IDE is the prefered way (the easier way), but it works from the console too!
You just need to set a breakpoint for fpc_raiseexception and it will stop on all pascal exceptions. =)
Works pretty well.
hi, I am also teaching Pascal using Lazarus and I wish to teach the use of Lazarus debugger. For console application, until now I only managed to use it when debugging the program in the terminal where Lazarus was launched. It does not work when a external terminal is used for the application (via the run parameters). Although breakpoints are set, nothing happens, the application actually does not run and I get the following messages in the launch term:
[Debugger] Console output: ~"(no debugging symbols found)\n"
and
[Debugger] Log output: &"No source file named TP1.lpr.\n"
TGDBMIDebugger.ProcessResult Error: ,msg="No source file named TP1.lpr."
Is there a reason for that? How do you set breakpoints fo fpc_raiseexception?
Thanks in advance, in the name of the whole team!
Solene