31.12.2013 Views

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

TOPS-20 PASCAL Language Manual - Bitsavers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 9<br />

PASDDT: THE <strong>PASCAL</strong>-<strong>20</strong> DEBUGGER<br />

The <strong>PASCAL</strong>-<strong>20</strong> debugger, P~SDDT, provides the means to monitor and<br />

modify the execution of a <strong>PASCAL</strong> program. PASDDT provides symbolic<br />

debugging capabilities that allow you to read and modify the values<br />

associated with variables by referring to the <strong>PASCAL</strong> identifiers<br />

within your program.<br />

9.1 RUNNING PASDDT<br />

To use the debugger, you must<br />

program. First, compile the<br />

switch in the command string:<br />

compile and load PASDDT with the<br />

source program and include the /DEBUG<br />

@<strong>PASCAL</strong><br />

<strong>PASCAL</strong>>filename/DEBUG<br />

<strong>PASCAL</strong>>/EXIT<br />

@<br />

Then, load the program along with PASDDT by specifying the DEBUG<br />

command:<br />

@DEBUG filename<br />

The DEBUG command loads and starts the program<br />

with the debugger, PASDDT.<br />

currently in memory,<br />

If you want more control over where the debugger is placed, or you<br />

have the need for more options, you can use the <strong>TOPS</strong>-<strong>20</strong> LINK program<br />

directly. Refer to the LINK Reference <strong>Manual</strong> for <strong>TOPS</strong>-<strong>20</strong> information.<br />

When running PASDDT, the source file with the extension PAS should be<br />

located in the same directory as the EXE version of the file. This<br />

should also be the directory to which you are connected when running<br />

PASDDT. If you have specified a file with the %INCLUDE directive,<br />

PASDDT looks for a file with the same name.<br />

9.2 USING SYMBOLIC VALUES<br />

Symbolic values are the identifiers defined within the source program.<br />

PASDDT allows access to identifiers available only in the current<br />

scope, and performs recognition on these identifiers.<br />

You can specify a location in the source code by using the line number<br />

shown in the listing file created when the program is compiled. See<br />

Section 8.4.7.<br />

9-1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!