Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 debugger and timer troubles
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00149027
Message ID:
00149109
Vues:
19
>I am having trouble with the debugger in VFP6 when a timer is running. The debugger "resets" itself whenever the timer fires. i.e. If I have expanded an object in the Watch or Local window, it will collapse whenever the timer fires. If I have a fast timer running, (.5 secs, to refresh a toolbar, for example) I can barely get a click in.
>
>I am running the Debugger in the Debug frame and am not displaying timer events. I am showing the line numbers in the Trace window and am not tracing between breakpoints. I did have the trace between breakpoints option on at one time, but the application response was extremely slow.
>
>TIA,
>Bill

Put the following in your base timer class' timer event. Add 2 properties to your timer class called iTraceInterval and iregularinterval. In timer.init, set iregularInterval = Timer.Interval and be sure to put DODEFAULT() in all subclasses:
IF WVISIBLE("trace") OR  ;
   WVISIBLE("debugger") OR ;
   WVISIBLE("call") OR ;
   WVISIBLE("watch") OR ;
   WVISIBLE("locals") 
   
   IF THIS.Interval # THIS.iTraceInterval
      THIS.iRegularInterval = THIS.Interval
      THIS.Interval = THIS.iTraceInterval      
   ENDIF

ELSE

   IF THIS.Interval = THIS.iTraceInterval
      THIS.Interval = THIS.iRegularInterval
   ENDIF
   THIS.iRegularInterval = THIS.Interval

ENDIF
This is now a trace aware timer (this code comes with VFP 6.0)
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform