Free Pascal supports debug information for the gnu debugger gdb. This chapter describes shortly how to use this feature. It doesn't attempt to describe completely the gnu debugger, however. For more information on the workings of the gnu debugger, see the gdb users' guide.
Free Pascal also suports gprof, the gnu profiler, see section 8.4 for more information on profiling.