Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable timers in debug mode
Message
From
19/02/2018 13:07:16
 
 
To
19/02/2018 10:37:23
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01658113
Message ID:
01658220
Views:
58
>>>I can not recall, but I believe there is a SYS() function that can be placed in the Watch window that will stifle the timer event.
>>Sys(2030) maybe?
>
>"Starting with Visual FoxPro 7, whenever user code directly runs a system component, such as _GENMENU or _BROWSER, certain debugging features (profiling, dohistory, breakpoints, and single step) are disabled. SYS(2030, 1) enables you to run debugger on this type of user code by disabling the default behavior, then re-enabling the behavior after debugging by issuing SYS(2030, 0). "
>
>Not sure whether this applies to timers.

SYS(2030) is off by default. You have to turn it on to be able to debug Xbase tools. I don't think it has anything to do with timer events.

However, in VFP's Tools | Options dialog, on the Debug page, there's a checkbox labelled "Display Timer Events." Help says:

Choose this option if you want Timer Control timer events displayed in the Trace Window when their interval value is reached. If you clear this option, the timer event still occurs, but is not displayed; it is treated as if you had specified Step Over for that event.

With this check box cleared, Visual FoxPro filters timer events even when you are stepping through a timer event currently.


Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform