SlideShare una empresa de Scribd logo
1 de 11
VB.Net


Simple Debugging



                   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 project
Run the version on the desktop by either
opening the folder and double-clicking the
solution file




                                             4
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
Double-click the errors and the compiler will show you the
line where the problem is.
                                                             6
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
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
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 variables
Right click on
your variable and
select “Add
Watch” to
monitor the value
of your variables
in the Watch
window



                               10
At the end of the session




Copy the whole project back – select “Yes to All” when asked   11

Más contenido relacionado

Destacado

Destacado (20)

Data types vbnet
Data types vbnetData types vbnet
Data types vbnet
 
Decisions
DecisionsDecisions
Decisions
 
Design for edp
Design for edpDesign for edp
Design for edp
 
Software development lifecycle
Software development lifecycleSoftware development lifecycle
Software development lifecycle
 
Ch 3 event driven programming
Ch 3 event driven programmingCh 3 event driven programming
Ch 3 event driven programming
 
Data structures vb
Data structures vbData structures vb
Data structures vb
 
Ndu06 typesof language
Ndu06 typesof languageNdu06 typesof language
Ndu06 typesof language
 
Decisions
DecisionsDecisions
Decisions
 
Design documentation
Design documentationDesign documentation
Design documentation
 
Simple debugging
Simple debuggingSimple debugging
Simple debugging
 
Event driven theory
Event driven theoryEvent driven theory
Event driven theory
 
Data types vbnet
Data types vbnetData types vbnet
Data types vbnet
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Event driven programming amazeballs
Event driven programming amazeballsEvent driven programming amazeballs
Event driven programming amazeballs
 
Controls
ControlsControls
Controls
 
Event oriented programming
Event oriented programmingEvent oriented programming
Event oriented programming
 
Using loops
Using loopsUsing loops
Using loops
 
(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming
 
Event+driven+programming key+features
Event+driven+programming key+featuresEvent+driven+programming key+features
Event+driven+programming key+features
 
Event driventheory
Event driventheoryEvent driventheory
Event driventheory
 

Similar a Simple debugging

Hello world pascal tutorial
Hello world pascal tutorialHello world pascal tutorial
Hello world pascal tutorialSerghei Urban
 
Windows 7 ls1
Windows 7 ls1Windows 7 ls1
Windows 7 ls1chrisbeks
 
10.USING THE ECLIPSE DEBUGGERupdated 8618This t.docx
10.USING THE ECLIPSE DEBUGGERupdated 8618This t.docx10.USING THE ECLIPSE DEBUGGERupdated 8618This t.docx
10.USING THE ECLIPSE DEBUGGERupdated 8618This t.docxpaynetawnya
 
INTRODUCTION TO VISUAL BASICS
INTRODUCTION TO VISUAL BASICS INTRODUCTION TO VISUAL BASICS
INTRODUCTION TO VISUAL BASICS Prof Ansari
 
Getting around the desktop guide
Getting around the desktop guideGetting around the desktop guide
Getting around the desktop guideAngelus Chevalier
 
Getting around the desktop guide
Getting around the desktop guideGetting around the desktop guide
Getting around the desktop guideVikash Joshi
 
Cis 170 c Enhance teaching / snaptutorial.com
Cis 170 c  Enhance teaching / snaptutorial.comCis 170 c  Enhance teaching / snaptutorial.com
Cis 170 c Enhance teaching / snaptutorial.comHarrisGeorg51
 
Getting started with PlatformIO
Getting started with PlatformIOGetting started with PlatformIO
Getting started with PlatformIOJens Brynildsen
 
Cis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comCis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comBaileya126
 
CIS 170 Education Specialist / snaptutorial.com
CIS 170  Education Specialist / snaptutorial.comCIS 170  Education Specialist / snaptutorial.com
CIS 170 Education Specialist / snaptutorial.comMcdonaldRyan138
 
Cis 170 Education Organization -- snaptutorial.com
Cis 170   Education Organization -- snaptutorial.comCis 170   Education Organization -- snaptutorial.com
Cis 170 Education Organization -- snaptutorial.comDavisMurphyB99
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Frank Pham
 
CIS 170 Exceptional Education - snaptutorial.com
CIS 170   Exceptional Education - snaptutorial.comCIS 170   Exceptional Education - snaptutorial.com
CIS 170 Exceptional Education - snaptutorial.comDavisMurphyB33
 
Work space PC for New Users
Work space PC for New UsersWork space PC for New Users
Work space PC for New UsersWilliam McIntosh
 
Cis 170 Effective Communication / snaptutorial.com
Cis 170 Effective Communication / snaptutorial.comCis 170 Effective Communication / snaptutorial.com
Cis 170 Effective Communication / snaptutorial.comBaileyao
 
Source Control Abominations
Source Control AbominationsSource Control Abominations
Source Control AbominationsDonald Belcham
 
Adobe beginners-guide
Adobe beginners-guideAdobe beginners-guide
Adobe beginners-guidejom1987
 

Similar a Simple debugging (20)

Hello world pascal tutorial
Hello world pascal tutorialHello world pascal tutorial
Hello world pascal tutorial
 
dr_4
dr_4dr_4
dr_4
 
dr_4
dr_4dr_4
dr_4
 
Windows 7 ls1
Windows 7 ls1Windows 7 ls1
Windows 7 ls1
 
10.USING THE ECLIPSE DEBUGGERupdated 8618This t.docx
10.USING THE ECLIPSE DEBUGGERupdated 8618This t.docx10.USING THE ECLIPSE DEBUGGERupdated 8618This t.docx
10.USING THE ECLIPSE DEBUGGERupdated 8618This t.docx
 
INTRODUCTION TO VISUAL BASICS
INTRODUCTION TO VISUAL BASICS INTRODUCTION TO VISUAL BASICS
INTRODUCTION TO VISUAL BASICS
 
Getting around the desktop guide
Getting around the desktop guideGetting around the desktop guide
Getting around the desktop guide
 
Getting around the desktop guide
Getting around the desktop guideGetting around the desktop guide
Getting around the desktop guide
 
Windows 10 upgrade notes
Windows 10 upgrade notesWindows 10 upgrade notes
Windows 10 upgrade notes
 
Cis 170 c Enhance teaching / snaptutorial.com
Cis 170 c  Enhance teaching / snaptutorial.comCis 170 c  Enhance teaching / snaptutorial.com
Cis 170 c Enhance teaching / snaptutorial.com
 
Getting started with PlatformIO
Getting started with PlatformIOGetting started with PlatformIO
Getting started with PlatformIO
 
Cis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.comCis 170 Education Organization / snaptutorial.com
Cis 170 Education Organization / snaptutorial.com
 
CIS 170 Education Specialist / snaptutorial.com
CIS 170  Education Specialist / snaptutorial.comCIS 170  Education Specialist / snaptutorial.com
CIS 170 Education Specialist / snaptutorial.com
 
Cis 170 Education Organization -- snaptutorial.com
Cis 170   Education Organization -- snaptutorial.comCis 170   Education Organization -- snaptutorial.com
Cis 170 Education Organization -- snaptutorial.com
 
Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1Bai thuc hanh lap trinh Android so 1
Bai thuc hanh lap trinh Android so 1
 
CIS 170 Exceptional Education - snaptutorial.com
CIS 170   Exceptional Education - snaptutorial.comCIS 170   Exceptional Education - snaptutorial.com
CIS 170 Exceptional Education - snaptutorial.com
 
Work space PC for New Users
Work space PC for New UsersWork space PC for New Users
Work space PC for New Users
 
Cis 170 Effective Communication / snaptutorial.com
Cis 170 Effective Communication / snaptutorial.comCis 170 Effective Communication / snaptutorial.com
Cis 170 Effective Communication / snaptutorial.com
 
Source Control Abominations
Source Control AbominationsSource Control Abominations
Source Control Abominations
 
Adobe beginners-guide
Adobe beginners-guideAdobe beginners-guide
Adobe beginners-guide
 

Más de nicky_walters

Más de nicky_walters (8)

Pseudocode flowcharts
Pseudocode flowchartsPseudocode flowcharts
Pseudocode flowcharts
 
Data types vbnet
Data types vbnetData types vbnet
Data types vbnet
 
Ndu06 typesof language
Ndu06 typesof languageNdu06 typesof language
Ndu06 typesof language
 
Debugging
DebuggingDebugging
Debugging
 
Input output
Input outputInput output
Input output
 
Decisions
DecisionsDecisions
Decisions
 
Intro to visual studio 2008
Intro to visual studio 2008Intro to visual studio 2008
Intro to visual studio 2008
 
Input output
Input outputInput output
Input output
 

Simple debugging

  • 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. Copy the WHOLE directory to the desktop to work on it 3
  • 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
  • 6. Double-click the errors and the compiler will show you the line where the problem is. 6
  • 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