Simple debugging
Upcoming SlideShare
Loading in...5
×
 

Simple debugging

on

  • 384 views

 

Statistics

Views

Total Views
384
Views on SlideShare
215
Embed Views
169

Actions

Likes
0
Downloads
0
Comments
0

1 Embed 169

http://moodle.wortech.ac.uk 169

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Simple debugging Simple debugging Presentation Transcript

    • Simple Debugging VB.Net 1
    • 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
    • Copy the WHOLE directory to the desktop to work on it 3
    • Work on your projectRun the version on the desktop by eitheropening the folder and double-clicking thesolution file 4
    • 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
    • Double-click the errors and the compiler will show you theline where the problem is. 6
    • 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
    • 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
    • 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
    • “Watch” your variablesRight click onyour variable andselect “AddWatch” tomonitor the valueof your variablesin the Watchwindow 10
    • At the end of the sessionCopy the whole project back – select “Yes to All” when asked 11