An introduction to the debugger And jGrasp editor-syncrasies (ideosyncrasies)

Slides:



Advertisements
Similar presentations
Copyright  Oracle Corporation, All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE.
Advertisements

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.
ECE Application Programming
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
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:
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
1 Lab Session-2 CSIT 121 Spring 2005 Debugging Tips NiMo’s Varying Rates Lab-2 Exercise.
1 Lab Session-VII CSIT-121 Fall Revising Previous Lab and performing ASCII chart printing experiment (DEMO) 4 Visual Studio Features 4 The While.
Guidelines for working with Microsoft Visual Studio 6.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Session-4 CSIT 121 Spring 2006 Debugging Tips Lab Work.
1 Gentle Introduction to Programming Tirgul 2: Scala “hands on” in the lab.
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.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 2 - HelloWorld Application: Introduction to.
Debugging Projects Using C++.NET Click with the mouse button to control the flow of the presentation.
Compiling & Debugging Quick tutorial. What is gcc? Gcc is the GNU Project C compiler A command-line program Gcc takes C source files as input Outputs.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Chapter 02 (Part III) Introduction to C++ Programming.
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.
Active-HDL Interfaces Debugging C Code Course 10.
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.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
Debuggers in Python. The Debugger Every programming IDE has a tool called a debugger. This application does NOT locate or fix your bugs for you! It slows.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
Copyright © 2004 – 2013 Curt Hill Java Debugging In Eclipse.
Hints on debugging
Python Functions : chapter 3
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.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Debug in Visual Studio Windows Development Fundamentals LESSON 2.5A.
Intro to. Contents These slides describe how one can obtain (download) and use eclipse to build, run, and debug basic Java programs.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
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 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Introduction Purpose  This training course demonstrates the use of the High-performance.
DEBUG.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Chapter 2: The Visual Studio .NET Development Environment
ECE Application Programming
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Topics: jGRASP editor ideosyncrasies assert debugger.
Computer Programming I
Software Design and Development
DEBUGGING.
Debuggers.
CIS 470 Mobile App Development
Comp 110/401 Appendix: Debugging Using Eclipse
Test Automation For Web-Based Applications
Debugging 9/22/15 & 9/23/15 Imagine! Java: Programming Concepts in Context by Frank M. Carrano, (c) Pearson Education - Prentice Hall, 2010.
DEBUGGING JAVA PROGRAMS USING ECLIPSE DEBUGGER
Debugging CSCE 121 J. Michael Moore.
Using a Debugger 1-Jan-19.
Debuggers and Debugging
Our Environment We will exercise on Microsoft Visual C++ v.6
Debugging Visual Basic Programs
POS 408 Week 1 Individual Assignment Individual: Console Display Message//tutorfortune.com Click on below link to buy
CIS 470 Mobile App Development
jGRASP editor-syncrasies (idiosyncrasies)
Debugging.
Workshop for Programming And Systems Management Teachers
CIS 694/EEC 693 Android Sensor Programming
Presentation transcript:

An introduction to the debugger And jGrasp editor-syncrasies (ideosyncrasies)

JGRASP EDITOR- SYNCRASIES

The jGRASP editor  Problem: Indentation seems to befuddle the jGRASP editor.

The jGRASP editor  Problem: Indentation seems to befuddle the jGRASP editor.  Solution: Tell jGRASP to use spaces instead of tabs.

before after Check Soft Tabs and set the Tab Size to 4. Click Apply and then OK. Now pressing the tab key will insert 4 spaces (and existing tabs will be converted to 4 spaces).

The debugger Our main topic

 A primitive way of debugging is to insert print statements. Using the debugger

 A primitive way of debugging is to insert print statements.  That’s OK but a debugger is much more powerful.

Using the debugger  A primitive way of debugging is to insert print statements.  That’s OK but a debugger is much more powerful. It allows us to execute our code one line at a time.

Using the debugger  A primitive way of debugging is to insert print statements.  That’s OK but a debugger is much more powerful. It allows us to execute our code one line at a time. It allows us to set breakpoints (stop points) in our code.

Using the debugger  A primitive way of debugging is to insert print statements.  That’s OK but a debugger is much more powerful. It allows us to execute our code one line at a time. It allows us to set breakpoints (stop points) in our code. We can even examine and change the contents of variables as our program runs.

Setting a breakpoint

Breakpoint is now set

Start the debugger  Build -> Debug The program then runs and stops at our first breakpoint.

end debugging

variables (r-click to change value)

next line to be executed

step over next line to be executed

step in next line to be executed

step out next line to be executed