Simple debugging

4,112 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,112
On SlideShare
0
From Embeds
0
Number of Embeds
3,778
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Simple debugging

  1. 1. Simple Debugging VB.Net 1
  2. 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
  3. 3. Copy the WHOLE directory to the desktop to work on it 3
  4. 4. Work on your projectRun the version on the desktop by eitheropening the folder and double-clicking thesolution file 4
  5. 5. Using the Debugger 1 Click the green triangle to compile and debugNever click Yes(it will run thelast build).Click No – youneed to sortout thosebugs! 5
  6. 6. Double-click the errors and the compiler will show you theline where the problem is. 6
  7. 7. Break PointsSet a break point by clicking on the grey baron the left hand side of the window.When you debug the compiler willstop and showyou the statusof the programat that point 7
  8. 8. Step throughUse F11 to go to thenext statementThe Autos windowwill show you thecurrent value of avariable …… as will puttingyour mouse over thename of a variable 8
  9. 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. 10. “Watch” your variablesRight click onyour variable andselect “AddWatch” tomonitor the valueof your variablesin the Watchwindow 10
  11. 11. At the end of the sessionCopy the whole project back – select “Yes to All” when asked 11

×