Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tracing Timer Event code
Message
From
30/01/2001 14:07:45
 
 
To
30/01/2001 13:54:26
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00470159
Message ID:
00470228
Views:
34
>>>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. ;)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform