Extended debug, Operational commands for debugger – Rockwell Automation 1398-PDM-xxx IQ Master Version 3.2.4 for IA-2000 and IQ-5000 Positioning Drive Modules, IQ-55 User Manual

Page 84

Advertising
background image

62

Run Menu • Extended Debug

Publication 1398-PM601A-EN-P — October 2000

MENUS

Extended Debug

Extended debug capabilities allow program execution to be verified. Debugger commands can be used
by all program types, except for Fkey programs and the error program. Debugger commands are
grouped into three categories:

Operational

Step

Breakpoints and Options

Before debugging can occur, perform the following steps:

1.

Create a new file or open an existing file with IQ Master.

2.

Compile the source file with extended debug information.

Compiling a source program for debugging requires that the following settings be active in the
Compiler Options of the Edit menu:

Compile to Disk

Generate List File

Disassemble Source

Add Debug Information

Extended Debug Information

Extended debug information also may be generated during the compile by specifying the following
preprocessor directives in the source file immediately after the program title statement:

CompileToMemory = OFF

ListFile = ON

Disassemble = ON

Debug = ON

ExtendedDebug = ON

Refer to the on-line Help menu for explanation of these preprocessor directives.

3.

Save the compiled executable to the IQ by selecting one of the following:

Save Program to IQ button in the Compiler Results dialog

Save Program to IQ command in the File menu.

4.

Enable the IQ and issue the desired extended debug commands from the Run menu.

Operational Commands for Debugger

Go

Go initiates a program in a non-traceable mode at full speed. The execution trace bar is not displayed in
the source code window of IQ Master while the programs executes.

To halt program execution, issue a Pause command from the Run menu.

The commands Auto, Trace or Abort may be issued anytime the program is running. Breakpoints may
be added, deleted or disabled while the program is executing.

Note: Debug information should not be included in the final executable that is transferred to the
ULTRA Plus or IQ. Programs containing debug information experience a 5 byte per source line
increase in size of the executable file and consequently there is a time penalty involved with exe-
cuting extended debug images of a program.

Advertising