The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.

Slides:



Advertisements
Similar presentations
Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Advertisements

Copyright  Oracle Corporation, All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
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.
C# Programming: From Problem Analysis to Program Design1 Debugging and Handling Exceptions C# Programming: From Problem Analysis to Program Design 3 rd.
Chapter 11 Debugging and Handling Exceptions
BIM313 – Advanced Programming Techniques Debugging 1.
MT311 Tutorial Li Tak Sing( 李德成 ). Uploading your work You need to upload your work for tutorials and assignments at the following site:
Lecture Roger Sutton CO331 Visual programming 15: Debugging 1.
1 Chapter 4 The Fundamentals of VBA, Macros, and Command Bars.
Finding and Debugging Errors
How to Debug VB .NET Code.
Visual Basic Debugging Tools Appendix D 6/27/20151Dr. Monther Aldwairi.
JavaScript, Fourth Edition
Formula Auditing, Data Validation, and Complex Problem Solving
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.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
Debugging applications, using properties Jim Warren – COMPSCI 280 S Enterprise Software Development.
1 Chapter 9 Writing, Testing, and Debugging Access Applications.
Enhancing User Interaction Through Programming
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.
Playing Back Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Our Environment We will exercise on Microsoft Visual C++ v.6 We will exercise on Microsoft Visual C++ v.6 because that is what we have in the univ. because.
Debugging in Java. Common Bugs Compilation or syntactical errors are the first that you will encounter and the easiest to debug They are usually the result.
ME 142 Engineering Computation I Debugging Techniques.
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.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Input Validation Check the values entered into a text box before beginning any calculations Validation is a form of ‘self-protection’, rejecting bad data.
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.
Debugging Xin Tong. GDB GNU Project debugger Allows you to see what is going on `inside' another program while it executes or crashed. (Faster than printing.
Centric features In this presentation… –macro capabilities more sophisticated functionality –advanced macro features Inspector Debugging error trapping.
1 Debugging and Syntax Errors in C++. 2 Debugging – a process of finding and fixing bugs (errors or mistakes) in a computer program.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 3 – Inventory Application: Introducing Variables,
Georgia Institute of Technology Creating Classes part 2 Barb Ericson Georgia Institute of Technology June 2006.
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.
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.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
Chapter 7 What’s Wrong with It? (Syntax and Logic Errors) Clearly Visual Basic: Programming with Visual Basic nd Edition.
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.
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 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
5.01 Understand Different Types of Programming Errors
Debugging and Handling Exceptions
ME 142 Engineering Computation I
How to debug an application
Debugging Dwight Deugo
Testing and Debugging.
Computer Programming I
Testing Key Revision Points.
Important terms Black-box testing White-box testing Regression testing
DEBUGGING.
Important terms Black-box testing White-box testing Regression testing
5.01 Understand Different Types of Programming Errors
Debugging with Eclipse
CIS 470 Mobile App Development
Tonga Institute of Higher Education
Testing, debugging, and using support libraries
Our Environment We will exercise on Microsoft Visual C++ v.6
Debugging Visual Basic Programs
CIS 470 Mobile App Development
Debugging Dwight Deugo
Debugging with Eclipse
CIS 694/EEC 693 Android Sensor Programming
Presentation transcript:

The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The debugger is typically used to: Trace Program Control Examine Variable Values Validate Program Input and Output The debugger can only be used in IDE BREAK MODE Debugging in Visual Basic

Forcing a Break During the debugging process, you may want to stop at a particular location in code and watch what happens which branch of an If..Then..Else statement is executed which procedures were executed the value of a variable just before or after a calculation Force the project to break by inserting a break-point in code

To set a breakpoint, place the cursor in the grey margin indicator area at the left edge of the code window and click The line will be highlighted in red and a large red dot will be displayed in the margin indicator margin indicator or

After setting the breakpoint, start/restart program execution When the project reaches the breakpoint, it will halt, display the line at which the breakpoint is set, and go into break time To turn off a breakpoint, click on either Toggle Breakpoint or Clear All Breakpoints from the Debug Menu To turn off a breakpoint, simply click on the red dot in the grey margin indicator area alternatively

Using the Immediate Window The immediate window is available at design time, run time, and break time The values of data or messages can be displayed in the immediate window while the project is executing In break time, the immediate window can be used to view or change the current contents of variables or to execute lines of code At design time, view the window to see values from the previous run, but you cannot execute any code

Checking the Current Values of Expressions

Debug Toolbar Debug Menu

Start Step Out Toggle Breakpoint Watch Window Locals Window Break End Step Into Step Over Quick Watch Call Stack Immediate Window

Step Into Executes the current line. If the current line is a procedure or function call, the procedure or function code is entered Step Over Executes the current line. If the current line is a procedure or function call, the procedure or function is executed without stepping into its code Step Out Execute the remaining procedure or function code and continue stepping through the procedure or function caller’s code Run To Cursor Executes all lines of code up to the line containing the cursor Add Watch Displays the Add Watch dialog Edit Watch Displays the Edit Watch dialog Quick Watch Displays the Quick Watch dialog Toggle Breakpoint Adds or removes a breakpoint Clear All Breakpoints Removes all breakpoints Set Next Statement Allows the programmer to specify which statement within the procedure or function is executed next Show Next Statement Transfers the cursor to the next line to be executed

The debugging tools can help find and eliminate logic and run-time errors The debugging tools can help to follow the logic of a project to better understand how it works Debugging in Visual Basic

Code relating to the click events of the option buttons