Troubleshooting
185
etLinx Studio (v2.4 or higher)
Troubleshooting
NetLinx Debugger Not Stopping On A Breakpoint
Symptoms
A breakpoint is set on a line of code, but the code does not stop execution on this line. The line of
code in question contains a SEND_COMMAND, SEND_STRING, or SEND_LEVEL.
Cause
The debugger will not stop on a line of code that sends a command, string, or level because of a
device declared as an integer instead of a DEVICE:PORT:SYSTEM (D:P:S) structure.
Example:
DEFINE_DEVICE
VCR = 2
TP = 128
DEFINE_EVENT
BUTTON_EVENT[TP,101]
{
PUSH:
{
SEND_COMMAND VCR," 'SP', 9" //The debugger will not stop if you put a
breakpoint here
}
}
Resolution
Declare devices using the full D:P:S structure. In fact, you should always do this in Netlinx.
Example:
DEFINE_DEVICE
VCR = 2:1:0
TP = 128:1:0
DEFINE_EVENT
BUTTON_EVENT[TP,101]
{
PUSH:
{
SEND_COMMAND VCR," 'SP', 9" //The debugger will now stop if you put a
breakpoint here
}
}