Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Easy way to breakpoints in forms
Message
De
15/07/1998 16:41:32
 
 
À
15/07/1998 14:50:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00117749
Message ID:
00117840
Vues:
19
>How do you set a breakpoint in a form (without inserting code)? I can add a breakpoint to a prg through the debugger, but how do you do the same for a form?
>
>The only way I've found to do it is to have a form method (called mySuspend which has the 2 lines of code "DEBUG, SUSPEND") and then set an ON KEY LABEL CTRL+Z _screen.ActiveForm.mySuspend. When I hit ^Z, this pauses my form, and the form context is loaded into the debugger. I can then set breakpoints and resume.
>
>Bob


The easiest way is to open the debugger, then the break point window. You can set a breakpoint when a method fires. For example, to break when MyForm.Init fires, just set MyForm.Init as the break point. No need to worry about line numbers or anything else.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform