Debug Mode Error Messages; Using Current Length With Total Length Disabled - AMX NetLinx Studio Instruction Manual

Netlinx design v3.3 or higher
Table of Contents

Advertisement

Debug Mode Error Messages

The most common warnings that you may get when entering Debug Mode (Debug > Start Debugging) are:
1.
No Debug Information:
FIG. 180
No Debug information
The source code file was not compiled with debug information - this can usually be ignored if you're only watching
variables, but if you're getting weird behavior, recompile with Compile with Debug Info enabled (in the NetLinx
Compiler tab of the Preference dialog).
You will always need debug symbols for breakpoint debugging.
2.
File no longer matches:
FIG. 181
File no longer matches
If you've made any changes to the source file, including a re-save, you'll get a message similar to the one above. It can
often be safely ignored, but select No if you've done any significant editing.
3.
Missing files.

Using Current Length with Total Length Disabled

The way you initialize variables in your source code affects the use of Current Length.
For example, if you have a variable declared as:
CHAR cat[3]
in debug, Total Length = 3 and Current Length = 0.
If you modified the code as:
CHAR cat[3] = 'CAT'
in debug Total Length = 3 and Current Length = 3.
If you modified the code like this:
CHAR cat[3]
and then in the DEFINE_START section of your code you added:
cat[1] = 'C'
cat[2] = 'A'
cat[3] = 'T'
in debug Total Length = 3 and Current Length = 0, because setting values using array indexing does not set the
current length.
NetLinx Studio - Instruction Manual
Building and Debugging Source Code
113

Advertisement

Table of Contents
loading

Table of Contents