[fpc-devel] Debugging FPC

Martin Schreiber fpmse at bluewin.ch
Mon Apr 7 10:00:26 CEST 2008


On Monday 07 April 2008 09.22:11 Никита Баль wrote:
> Does anybody tryed to debug fpc under Lazarus? How?

This is for MSEide i386 and FPC 2.3.1:
http://sourceforge.net/project/showfiles.php?group_id=165409

- 'Project'-'New'-'From Program'.
- Select "compiler/pp.pas" from your FPC SVN checkout.
- Accept "pp.prj".
- 'Project'-'Options'-'Make'-'Make options', add "-di386" (without quotes) to 
the first row of 'Command line options'.
- 'Project'-'Options'-'Make'-'Directories', add a row, select "compiler/i386/"
- Add a row with "/compiler/x86/".
- Add a row with "/compiler/systems/".
- Set the commandline parameters for the target in 'Target'-'Environment'.
- Press F9.

You should possibly change the unit output directory to be consistent with the 
make file.

Martin



More information about the fpc-devel mailing list