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 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.
Axcess Programming Language
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.
Debugging
103
Need help?
Do you have a question about the AXCESS CONTROL SYSTEM PROGRAM and is the answer not in the manual?