Debugging Compiler

From Free Pascal wiki
Revision as of 03:15, 12 April 2021 by Trev (talk | contribs) (→‎Debugging FPC Hints: Fix typos; add debugging category)
Jump to navigationJump to search

Here are some hints on debugging FPC compiler itself

Debugging FPC Hints

  • A useful procedure in which to place a breakpoint is [code]GenerateError[/code]. It's called for any kind of compilation error (syntax error, type error, assembler reader error, internal error, ...).
  • Like gcc there are some verbosity options to show internal representations like -vp -vv
  • Place a breakpoint in Lazarus. An .lpi is in the compiler/directory (using Lazarus IDE).