VB – Debugging Tools Appendix D. Why do we need debugging? Every program has errors, and the process of finding these errors is debugging Types of errors.

Slides:



Advertisements
Similar presentations
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Advertisements

Why care about debugging? How many of you have written a program that worked perfectly the first time? No one (including me!) writes a program that works.
Chapter 3: Editing and Debugging SAS Programs. Some useful tips of using Program Editor Add line number: In the Command Box, type num, enter. Save SAS.
Using Macros and Visual Basic for Applications (VBA) with Excel
© 2002 ComputerPREP, Inc. All rights reserved. Excel 2000: Customizing Excel and Using Macros.
Error Trapping Part II Runtime Errors Error Handling Conclusion Questions Syntax Errors Error Categories Logic Errors Debugging Tools The Err Object Error.
BIM313 – Advanced Programming Techniques Debugging 1.
Lecture Roger Sutton CO331 Visual programming 15: Debugging 1.
General Computer Science for Engineers CISC 106 Lecture 21 Dr. John Cavazos Computer and Information Sciences 04/10/2009.
Programming Lecture #3 CS 101 Autumn 2006 Tariq Jadoon.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
Lec6 P 1 CP2030 Visual Basic For C++ programmers Copyright © University of Wolverhampton CP2030 VBFC Lecture 6 Back To Index v Procedures and Parameters.
Finding and Debugging Errors
How to Debug VB .NET Code.
Guidelines for working with Microsoft Visual Studio.Net.
Visual Basic Debugging Tools Appendix D 6/27/20151Dr. Monther Aldwairi.
Guidelines for working with Microsoft Visual Studio 6.
Chapter 12: Advanced Topics: Exception Handling Visual Basic.NET Programming: From Problem Analysis to Program Design.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
JavaScript, Fourth Edition
DEBUGGERS For CS302 Data Structures Course Slides prepared by TALHA OZ (most of the text is from
Debugging Logic Errors CPS120 Introduction to Computer Science Lecture 6.
Using a Debugger. SWC What is ”debugging”? An error in a computer program is often called a ”bug”… …so, to ”debug” is to find and get rid of errors in.
ASP.NET Programming with C# and SQL Server First Edition Chapter 6 Debugging and Error Handling.
Debugging applications, using properties Jim Warren – COMPSCI 280 S Enterprise Software Development.
1 Chapter 9 Writing, Testing, and Debugging Access Applications.
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC BUILDING BLOCKS Bilal Munir Mughal 1 Chapter-5.
Debugging Projects Using C++.NET Click with the mouse button to control the flow of the presentation.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
BİL528 – Bilgisayar Programlama II Making Decisions, Loops, Debugging, Designing Objects Using Classes 1.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
Session Objectives How to Debug PTF test case/Script Session-6 DebuggingSlide 2.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Visual Basic 2010 How to Program © by Pearson Education, Inc. All Rights Reserved.
Debugging Visual Basic.NET Programs ► ► Use debugging tools ► ► Set breakpoints and correct mistakes. ► ► Use a Watch and Local window to examine variables.
Chapter 4 - Visual Basic Schneider1 Chapter 4 General Procedures.
Centric features In this presentation… –macro capabilities more sophisticated functionality –advanced macro features Inspector Debugging error trapping.
Using Visual Studio C++ Express Ron Gross A current copy of this can be found at or this direct linkhttp://tinyurl.com/2ucarothis.
Copyright © 2004 – 2013 Curt Hill Java Debugging In Eclipse.
NETBEANS DEBUGGER.  To create a breakpoint place the cursor at the desired location.  Go to the Run -> toogle line Breakpoint or Ctrl +F8. It creates.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Debug in Visual Studio Windows Development Fundamentals LESSON 2.5A.
5.01 Understand Different Types of Programming Errors
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
Visual Basic Integrated Development Environment (IDE) 56:150 Information System Design.
CSC 1201 LAB RULES Nouf Aljaffan (C) CSC 1201 Course at KSU.
Copyright Ó Oracle Corporation, All rights reserved Debugging Triggers.
JavaScript, Sixth Edition
Chapter 7 What’s Wrong with It? (Syntax and Logic Errors) Clearly Visual Basic: Programming with Visual Basic nd Edition.
1 Advanced.Net Debugging Using Visual Studio, R# and OzCode IT Week, Summer 2015.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
1/21/2018 6:52 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Chapter 2: The Visual Studio .NET Development Environment
5.01 Understand Different Types of Programming Errors
Debugging with Clion and GDB
How to debug an application
Computer Programming I
Software Design and Development
Testing Key Revision Points.
DEBUGGING.
5.01 Understand Different Types of Programming Errors
DEBUGGING JAVA PROGRAMS USING ECLIPSE DEBUGGER
Debugging Visual Basic Programs
Presentation transcript:

VB – Debugging Tools Appendix D

Why do we need debugging? Every program has errors, and the process of finding these errors is debugging Types of errors –Syntax Errors –Run Time Errors –Logic Errors

Debugging and Modes VB has three modes –Design –Run –Break Syntax Errors show up during design mode Run Time Errors show up during run mode and invoke break mode When do Logic errors show up?

Syntax Errors How do they show up?????

Run Time Errors How about them???

Logic Errors Well??? I’m waiting Maybe a good start is to find out what they really are

Visual Basic 6.0 Tools Immediate Window – You can type a statement in the immediate window, press enter, and the stmt you typed is executed. The Immediate window is used to find what the value of variables are when the programmer selects the break mode

Visual Basic 6.0 Tools p-2 Watch Window – is used to monitor (watch) an expression or a break expression. At any time, the watch window shows the current values of all watch and break expressions We add expressions to the Watch Window by right-click on a variable in the code window and add to watch. We can also edit and delete expressions.

Visual Basic 6.0 Tools p-3 Locals Window – displays the names, values, and types of all variables in the current procedure. Values of variables can be altered at any time in this window Properties of objects can be modified through this window as well

STEP Step Through – F8 – line by line Step Over – Shift / F8 – skip a procedure Step Out – Ctrl / Shift / F8 – execute remainder These are handled manually with these key strokes, I use them all the time

BreakPoints Setting – F9 Program will execute up to this point Removing – F9 Clear All - Ctrl / Shift / F9 Set next Stmt – Ctrl / F9 Continue or Advance – F5 Run to cursor – Ctrl / F8