Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easy way to breakpoints in forms
Message
From
15/07/1998 16:41:32
 
 
To
15/07/1998 14:50:02
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00117749
Message ID:
00117840
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform