Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Debugger off by 1 or 2 lines
Message
From
20/06/2000 12:04:14
Todd Zmetana
Night Owl Projects
Alberta, Canada
 
 
To
20/06/2000 11:32:44
Cindy Winegarden
Duke University Medical Center
Durham, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00377223
Message ID:
00382233
Views:
28
Cindy,

Not quite. For example:

If a function is defined as below, you will find that the rest of the function will be off by 1 line for the remainder of the function. When you are debugging the function, the debugger will be pointing at the blank space before the j = 1 line but is actually executing the j = 1 line. When you step, it will point at the j = 1 line but is really executing the k = 2 line.

Function Foo(a, b, ;
c, d)

j = 1
k = 2

If the Function line is changed to be:

Function Foo(a, b, c, d)

you will not notice any debugger line offsets.

Hope this helps...

Todd


>Todd,
>
>When a program statement is continued on another line the debugger treats the whole thing as one statement and points to the last line of the continued program statement.
>
>Is this what you're referring to?
>
>
>>What I noticed though through more testing/debugging was that the executing line pointer in the debugger is off when the FUNCTION line has ; at the end for continuation of paramters. So, if you have 1 additional line of parameters, the debugger is off by 1 line. If 2 additional lines... you get the idea.
>>
>>Hopes this helps you.
>>
>>Todd
Previous
Reply
Map
View

Click here to load this message in the networking platform