Debugging Your Pascal Application

VS Pascal provides you with an interactive debugging tool that allows you to debug your VS Pascal applications without having to write debugging statements directly into your source program. You can use this tool in interactive mode and in batch mode.

To invoke this interactive debugging tool, follow these steps:

  1. Use the DEBUG option on the compiler command.
  2. Before you link-edit your application, use the GLOBAL command to identify the debugging library and run-time library needed for the interactive debugging tool. You should identify the debugging library before the run-time library. When you invoke the PASCMOD exec with the DEBUG option to build your load module the debugging library, PASDEBUG TXTLIB, is automatically identified.
  3. Use the DEBUG run-time option when you execute the load module.

Once you are in the debugging environment, you can issue the debug commands provided by the VS Pascal language.

For details on the interactive debugging tool, see the VS Pascal Application Programming Guide.