Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Simple debugging


Published on

  • Be the first to comment

  • Be the first to like this

Simple debugging

  1. 1. VB.NetSimple Debugging 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