>>>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. ;)