
Building and Debugging Source Code
113
NetLinx Studio - Instruction Manual
Debug Mode Error Messages
The most common warnings that you may get when entering Debug Mode (
Debug > Start Debugging
) are:
1.
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:
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.
FIG. 180
No Debug information
FIG. 181
File no longer matches
Содержание NetLinx Studio
Страница 40: ...Working with Projects 28 NetLinx Studio Instruction Manual...
Страница 148: ...Communication Settings 136 NetLinx Studio Instruction Manual...
Страница 160: ...Working with Online Devices 148 NetLinx Studio Instruction Manual...
Страница 178: ...File Transfer Operations 166 NetLinx Studio Instruction Manual...
Страница 208: ...Tools Menu Options 196 NetLinx Studio Instruction Manual...
Страница 229: ...Setting Program Preferences 217 NetLinx Studio Instruction Manual...