Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debugger off by 1 or 2 lines
Message
De
20/06/2000 12:04:14
Todd Zmetana
Night Owl Projects
Alberta, Canada
 
 
À
20/06/2000 11:32:44
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00377223
Message ID:
00382233
Vues:
27
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform