Debugging using By: Samuel Ashby. What is debugging?  A bug is an error in either a program or the hardware itself.  Debugging is first locating and.

Slides:



Advertisements
Similar presentations
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
Advertisements

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Copyright  Oracle Corporation, All rights reserved. 1 Creating an Application: The AppBuilder for Java IDE.
Coding and Debugging. Requirements and Specification Recall the four steps of problem solving: Orient, Plan, Execute, Test Before you start the implementation.
COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Georgia Institute of Technology DrJava Appendix A Barb Ericson Georgia Institute of Technology May 2006.
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.
Fall 2007CS 2251 Programming Tools Eclipse JUnit Testing make and ant.
Scite Scintilla integrated text editor. Click here.
DEBUGGERS For CS302 Data Structures Course Slides prepared by TALHA OZ (most of the text is from
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Java Swing Joon Ho Cho. What is Java Swing? Part of the Java Foundation Classes (JFC) Provides a rich set of GUI components Used to create a Java program.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
INTRODUCTION TO C PROGRAMMING LANGUAGE Computer Programming Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
Integrated Development Environments (IDEs) CS 21a: Introduction to Computing I First Semester,
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC BUILDING BLOCKS Bilal Munir Mughal 1 Chapter-5.
Lecture 1 Programming in C# Introducing C# Writing a C# Program.
1 Introduction to Computation and Problem Solving Class 2: Integrated Development Environments Prof. Steven R. Lerman and Dr. V. Judson Harward.
IDEs Department of Information Systems and Computer Science Ateneo de Manila University.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Debugging. 2 © 2003, Espirity Inc. Module Road Map 1.Eclipse Debugging  Debug Perspective  Debug Session  Breakpoint  Debug Views  Breakpoint Types.
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.
Editing & Compiling: UNIX vs. IDE and an Intro to Architecture.
9/2/ CS171 -Math & Computer Science Department at Emory University.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Eclipse debugger.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
A Tutorial on Introduction to gdb By Sasanka Madiraju Graduate Assistant Center for Computation and Technology.
Allegro CL Certification Program Lisp Programming Series Level I Session Basic Lisp Development in the IDE.
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.
1 Debugging and Syntax Errors in C++. 2 Debugging – a process of finding and fixing bugs (errors or mistakes) in a computer program.
Copyright © 2004 – 2013 Curt Hill Java Debugging In Eclipse.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 4 Slide 1 Slide 1 What we'll cover here l Using the debugger: Starting the debugger Setting.
Exploring Spyder: An IDE for scientific computing
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
The Development Process Compilation. Compilation - Dr. Craig A. Struble 2 Programming Process Problem Solving Phase We will spend significant time on.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
Debugging Watch and Text Output Alice. Debugging Techniques Several techniques are helpful in eliminating errors (bugs) in programs: careful design incremental.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
1 1 1 Introduction to Java. 2 History of Java Java – Originally for intelligent consumer-electronic devices – Then used for creating Web pages with dynamic.
Editing and Debugging Mumps with VistA and the Eclipse IDE Joel L. Ivey, Ph.D. Dept. of Veteran Affairs OI&T, Veterans Health IT Infrastructure & Security.
Visual Programming Borland Delphi. Developing Applications Borland Delphi is an object-oriented, visual programming environment to develop 32-bit applications.
What's New in Visual Studio 2010 Debugging Brian Peek Senior Consultant, ASPSOFT, Inc. Microsoft MVP - C#
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
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,
Installing Java on a Home machine
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Development Environment
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Testing and Debugging.
Debugging CMSC 202.
Debugging Techniques.
Important terms Black-box testing White-box testing Regression testing
Eclipse 20-Sep-18.
Important terms Black-box testing White-box testing Regression testing
TRANSLATORS AND IDEs Key Revision Points.
Installing Java on a Home machine
DEBUGGING JAVA PROGRAMS USING ECLIPSE DEBUGGER
Debugging Taken from notes by Dr. Neil Moore
Testing, debugging, and using support libraries
Debugging Taken from notes by Dr. Neil Moore
Java IDE Dwight Deugo Nesa Matic Portions of the notes for this lecture include excerpts from.
Chapter 1: Programming Basics, Python History and Program Components
Review of Previous Lesson
Workshop for Programming And Systems Management Teachers
Presentation transcript:

Debugging using By: Samuel Ashby

What is debugging?  A bug is an error in either a program or the hardware itself.  Debugging is first locating and then fixing or bypassing bugs.  Need to isolate the source of the problem.

Text Editors  IDEs are complicated and take time and patience to learn to use its features.  When learning a language a text editor hides nothing and can help a programmer become more proficient with the language.  An IDE won’t fix terrible code.

PyCharm Benefits  It takes a lot less time and effort to develop an application in PyCharm or any IDE than not using one at all.  The tools and features that come with an IDE provide shortcuts to commonly used code or other code you may have already done.  Less time is spent debugging because the IDE catches onto mistakes.  Project management is easier because you don’t need to go back and forth looking in the file system for something you need to edit.

Starting Off  Need to create a new project once in PyCharm.  It is also possible to just open a file.  Using a project rather then a single file makes project management easier.

Project Interpreter  What is a project interpreter and why is it needed?  The interpreter is what is actually compiling the python code to run.  Get the interpreter download from they have a download tab on the main page.  Select python.exe from its directory for use as the project interpreter in PyCharm.

PyCharm Assistance  All syntax errors are underlined with a red wavy line.  Will make smart suggestions.  PyCharm integrates with PEP8 to guard code integrity and report any code style violations to you.

Running your application Example: Syntax Error after running

Debugging Options  Finding the origin of the bug yourself by using the information given to you in the console after the run-time error. OR  Open a debug session in PyCharm.

What is a debug session?  It is working with a interactive debugger console that PyCharm provides that enables you to view the output and messages.  The interactive console has features like typing and executing commands in its own pane, load source code from the editor into the console, view a history of commands, and basic code completion.

Breakpoints  Breakpoints are markers in your source code that trigger actions during a debugging session.  A breakpoint is displayed in the left gutter area and it will have a small icon denoting its status.  Clicking an icon removes the breakpoint.  Alt-Clicking on an icon toggles its state between enabled and disabled.

Interface  Frames Pane: shows a list of threads in your application.  Variables Pane: lets you examine the values store in the objects of your application.  Watches Pane: here you evaluate any number of variables or expressions in the current stack frame.

Overview of Options  The debugger is graphical and has features like breakpoints, frames view, and watching/evaluating expression that you didn’t have otherwise.  Extra features may get in the way of simpler bug fixes.  May help with bigger projects that you can’t easily find the origin of bugs.  Clean code always prevails.

The takeaway?  IDEs like PyCharm have plenty of features to aid in the process of coding and debugging without doing enough that would make the programmers job useless.

Questions?