The document provides tips for debugging VB.Net code. It recommends copying the entire project folder to the desktop to work on, using the debugger to set breakpoints and step through code, and monitoring variables in the autos and watch windows. When finished debugging, it advises copying the whole updated project folder back to the original location.
2. Remember! Work on the desktop
A project folder is created with a new project. Always
copy this whole directory – don’t open it up and take
bits of it. All the files are needed by VB.Net
2
4. Work on your project
Run the version on the desktop by either
opening the folder and double-clicking the
solution file
4
5. Using the Debugger 1
Click the green triangle to compile and debug
Never click Yes
(it will run the
last build).
Click No – you
need to sort
out those
bugs!
5
7. Break Points
Set a break point by clicking on the grey bar
on the left hand side of the window.
When you debug the compiler will
stop and show
you the status
of the program
at that point
7
8. Step through
Use F11 to go to the
next statement
The Autos window
will show you the
current value of a
variable …
… as will putting
your mouse over the
name of a variable
8
9. Step Into (F8) & Step Over (Shift F8)
Use Debug - Step
Into (F8) to step
through the whole
program
You can
Step Into or Step
Over subroutines
Hit F5 to run
program to end
9
10. “Watch” your variables
Right click on
your variable and
select “Add
Watch” to
monitor the value
of your variables
in the Watch
window
10
11. At the end of the session
Copy the whole project back – select “Yes to All” when asked 11