
Debugging
103
Axcess Programming Language
Debugging
No programs are ever written without errors on the first try, and one of the most time-consuming
parts of programming is debugging. Use this section as a reference to help minimize this process.
Types of Errors
There are three general types of programming errors:
!
Compilation errors: Errors that occur at compile time. The Axcess compiler alerts you to
these errors immediately and identifies each error and the line where it is located.
!
Run-time errors: Errors that occur after the program has been compiled and loaded into
the Central Controller. These errors are caused by program statements that attempt illegal
operations.
!
Logic errors: Logic errors are errors in program design and thus are the programmer's
responsibility; Axcess cannot tell if the program it is executing is accomplishing what the
user intends.
Compilation Errors and Warnings
When the compiler finds an error during the compilation process, it informs the programmer. Most
of the time these errors occur due to a typographical error or incorrect syntax of a particular
command. Refer to the Compiler Error Messages section for explanations of common compiler
errors.
Sometimes the compiler generates a warning message instead of an error message; these warning
messages always start with "w". A warning about a particular statement means that the statement is
not technically an error, but you should be careful doing it. Warnings, unlike errors, do not stop the
program from compiling. Some types of warnings can be disabled using the Options... menu
selection in the AX File menu. This displays a window where you can enable and disable the
generation of warning messages. For more information, refer to the AX File Menu section.
Following are warning messages along with brief descriptions.
Summary of Contents for Axcess
Page 1: ...instruction manual Software Axcess Programming Language ...
Page 8: ...vi Axcess Programming Language Table of Contents ...
Page 12: ...Introduction 4 Axcess Programming Language ...
Page 22: ...Axcess Basics 14 Axcess Programming Language ...
Page 38: ...Channel Characteristics 30 Axcess Programming Language ...
Page 54: ...Levels 46 Axcess Programming Language ...
Page 62: ...Operators 54 Axcess Programming Language ...
Page 66: ...Variable Types and Conversions 58 Axcess Programming Language ...
Page 70: ...Two Dimensional Arrays 62 Axcess Programming Language ...
Page 80: ...While Keywords 72 Axcess Programming Language ...
Page 86: ...Using Buffers 78 Axcess Programming Language ...
Page 94: ...Waits and Timer Keywords 86 Axcess Programming Language ...
Page 102: ...Using Subroutines 94 Axcess Programming Language ...
Page 108: ...Include Files and System_Calls 100 Axcess Programming Language ...
Page 120: ...Compiler Error Messages 112 Axcess Programming Language ...
Page 124: ...The External_Control Protocol 116 Axcess Programming Language ...