Re: [fpc-pascal] FPC Backtrace

2022-01-03 Thread Graeme Geldenhuys via fpc-pascal
On 2022-01-03 23:45, Graeme Geldenhuys wrote: 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

Re: [fpc-pascal] FPC Backtrace

2022-01-03 Thread Graeme Geldenhuys via fpc-pascal
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

Re: [fpc-pascal] FPC Backtrace

2022-01-03 Thread James Richters via fpc-pascal
That works great!!! Exactly what I was wanting Thank you, James On Mon, Jan 3, 2022 at 3:28 PM James Richters via fpc-pascal mailto:fpc-pascal@lists.freepascal.org> > wrote: I’m curious if there is some way, perhaps with some directive or something to force a debug backtrace to

Re: [fpc-pascal] FPC Backtrace

2022-01-03 Thread Christo Crause via fpc-pascal
On Mon, Jan 3, 2022 at 3:28 PM James Richters via fpc-pascal < fpc-pascal@lists.freepascal.org> 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 > Try calling Dump_Stack in your code:

[fpc-pascal] FPC Backtrace

2022-01-03 Thread James Richters via fpc-pascal
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. I have a function that is getting called twice and should only be called once, so my thought is that if I could go into the routine and put something there that