Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement