[fpc-pascal] FPC Backtrace

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Tue Jan 4 00:45:28 CET 2022

On 2022-01-03 13:28, James Richters via fpc-pascal wrote:
> I’m curious if there is some way, perhaps with some directive or 
> something to force a debug backtrace to happen, but without an error.

Christo already offered you a solution, but to offer an alternative 
solution... Most IDE debugging functionality (or even GDB directly) 
allows you to set a Breakpoint with iteration count or some other 
expression. So instead of the default, triggering the breakpoint 
instantly, you can trigger in with a different criteria. Once the 
breakpoint is triggered, then you can look at the Call Stack and 
evaluate local variables and such.


More information about the fpc-pascal mailing list