Recent

Author Topic: Debugging FPC  (Read 2159 times)

440bx

  • Hero Member
  • *****
  • Posts: 4063
Debugging FPC
« on: August 08, 2018, 07:31:48 am »
Hello,

I was just curious to find out how FPC's developers go about debugging FPC.  Particularly in some not so easy cases such as how Windows (or some other OS) implements exception handling.

There was a time when SoftICE was the tool to figure out what was not well (or not) documented.   Today, on Windows, there is WinDBG but, it is no SoftICE.

I was wondering what debugging tool(s) the FPC developers use to solve the really thorny problems. 

Thank you.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

PascalDragon

  • Hero Member
  • *****
  • Posts: 5486
  • Compiler Developer
Re: Debugging FPC
« Reply #1 on: August 10, 2018, 09:19:29 am »
GDB or plain old Writeln. *shrugs*

440bx

  • Hero Member
  • *****
  • Posts: 4063
Re: Debugging FPC
« Reply #2 on: August 10, 2018, 09:43:03 am »
GDB or plain old Writeln. *shrugs*
Thank you for replying.  That works well for most everything that is simple but, tracing the unwinding of Windows exception handlers (for instance) like that is not exactly easy.    My hat off to the developers for their hard work and patience.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018