beautypg.com

Debugging programs – Adept DeskTop 4.3 User Manual

Page 55

background image

Adept DeskTop 4.3 - Online Help

55

Figure 32 Automatic Formatting of Code in Program Editor

Detecting Errors

There are many aids in the Program Manager to assist you in finding errors in programs.

Syntax highlighting: Some errors are detected by the syntax checker. These errors are

highlighted in different color (red, by default) from the rest of the code.

Status bar: The status bar displays the last error message reported by V+ or MicroV+ on

the controller, as illustrated in

Figure 33

. It also shows the line (Ln:) and column (Col:)

position of the cursor.

Program Manager Icons: In the Program Manager, the program containing an error is

indicated by an icon with a red "

?

" character.

Tooltips: Tooltips appear at various places in the Program Editor when you hover and pause

over items with the mouse.

Figure 33 Display of Errors in the Program Editor

Debugging Programs

Program debugging integrated into the Program Editor. Debugging allows you to interactively step
through a program execution while simultaneously displaying variables and states.

New line is typed, starting
at left margin

After 'Enter/Return' key is clicked, the
new line is automatically indented

Text highlighting colors
can be modified in the
Options form

Error tooltip

Error message in status
bar provides description
and message number