Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stepping through code
Message
 
À
14/09/2000 14:21:56
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00416545
Message ID:
00416956
Vues:
27
>Is there any reason or cause that stepping through my code fires the events and performs the procedures, but not stepping through the code seemingly does nothing? Any help would be greatly appreciated, I can give you the exact code and circumstances if necessary.
>Thanks in advance,
>Charity

It is often caused by having code in the got/lost focus events. These can be fired by your program as it switches between the Debugger and the running app. This can cause your program to appear to perform incorrectly (or correctly in the one case that I had) where it never did before. If it is something specific you are degugging use debug.print and pring the info to the debug window (ie. debug.print "VARNAME in PROC/EVENT: VALUE") so you can watch them change. Your best bet to find the glitch is set breakpoints in your app and try to narrow down where the bug is that way set the breakpoint check the call stack and the appropriate variables and then if they are right move your breakpoint farther into the app and rerun it, if they are wrong back the break point up in the app and rerun it this way misfiring events caused by the debugger don't interfere.

Hope this helps.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform