First of all, you must be sure that the compiler is compiled with debugging support. Unfortunately, there is no way to check this at run time, except by trying to compile a program with debugging support.
To compile a program with debugging support, just specify the -g option on the command-line, as follows:
ppc386 -g hello.ppThis will generate debugging information in the executable from your program. You will notice that the size of the executable increases substantially because of this.
Note that the above will only generate debug information for the code that has been generated when compiling hello.pp. This means that if you used some units (the system unit, for instance) which were not compiled with debugging support, no debugging support will be available for the code in these units.
There are 2 solutions for this problem.
If all went well, the executable now contains the necessary information with which you can debug it using gnu gdb.