Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tracing Timer Event code
Message
De
30/01/2001 16:12:40
 
 
À
30/01/2001 14:07:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00470159
Message ID:
00470330
Vues:
40
>>>>I have a strange happening. If I set a breakpoint in the click of a button I can then step through the code one line at a time. If I set a break point in a timer event method, when I try to step into the process it does not stop on the next line, it acts as if I had selected resume.
>>>>
>>>>TIA
>>>>Robert
>>>
>>>Did you disable the timer while debugging?
>>
>>Yes, that is the first line of code in the event.
>>timer1.timer Code looks like
>>
>>this.enabled = .F.
>>a=1 (breakpoint)
>>b=2
>>c=3
>>d=f
>>
>>program stops on "a=1" and shows trace window. When I press "step into" the error at line "d=f" appears(I made this error on purpose). The program does not stop on the 2 lines in between. If you put the same code in the click of a button (except for this.enabled) the program will step through just fine.
>
>You're right. I guess I've never tried to debug any timer code with the debugger. Looks like you'll have to "deskcheck" the code, or debug the routine outside of the timer. Or get it right the first time. ;)

I guess you could create a method on the form (or subclass the timer object and add a method) then call the other method from the timer event. You can then step through that code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform