Debugging???

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello everyone

I have a work around for debugging a form. I'm not sure if this is optimal
but this will have to do until I learn how to debug with the Visual Basis
tools. I declare my variable and set it to a value. I create a textbox and
place the variable init to show the value on the form. Basically I save and
close the form in design view and open the form view to see if my value will
appear in the form. This is the old way of debugging web pages with
reponse.write. Can someone tell me or point me in the right direction to
properly degugging a visual basic application/form?

kw
 
I don't have a link to any resource but.here's a general idea (using A2K)...

Add a breakpoint into your code at the start of anything troublesome by
clicking in that line and using Debug, Toggle Breakpoint.
When the code is run it will stop there and be highlighted in yellow.
You can then tell the code to continue as normal (or until the next
breakpoint) by hitting F5, or to carry on a line at a time with F8
While you're doing that you can use the Locals window (from the view menu)
to see what different things are set to, or the immediate window (also from
View) to check different expressions... entering ?foo*bar will tell you what
the variable foo times the one called bar comes out as (where ? means
'display it in the immediate window)

If that makes no sense then it might be useful to post some of your code,
together with what you want to figure out at what point, and I (or someone
else) should be able to tell you.
 
Back
Top