IDE’s and Debugging.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
Advertisements

Introduction to Eclipse. Start Eclipse Click and then click Eclipse from the menu: Or open a shell and type eclipse after the prompt.
Creating a Dialog-Based Comet Windows Program Brian Levantine.
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.
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.
Visual Basic Debugging Tools Appendix D 6/27/20151Dr. Monther Aldwairi.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Debugging Logic Errors CPS120 Introduction to Computer Science Lecture 6.
Python quick start guide
CHAPTER 6 Loop Structures.
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
The NetBeans IDE CSIS 3701: Advanced Object Oriented Programming.
Integrated Development Environments (IDEs) CS 21a: Introduction to Computing I First Semester,
Debugging Projects Using C++.NET Click with the mouse button to control the flow of the presentation.
Author: Loh Jianxiong Christopher Editors: Chua Jie Sheng, Li Mengran, Peh Shao Hong, Oo Theong Siang.
IDEs Department of Information Systems and Computer Science Ateneo de Manila University.
CPSC1301 Computer Science 1 Overview of Dr. Java.
Active-HDL Interfaces Debugging C Code Course 10.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Java Basics Hussein Suleman March 2007 UCT Department of Computer Science Computer Science 1015F.
Development with Eclipse Software Engineering Prof. Werner Krandick.
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.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
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.
CSC 1201 LAB RULES Nouf Aljaffan (C) CSC 1201 Course at KSU.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Debugging and Testing Hussein Suleman March 2007 UCT Department of Computer Science Computer Science 1015F.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
Programming C++ in Linux by various IDEs and editors by: Danial Khashabi Master: Dr.B.Taheri November 2008.
Lets Learn fundamentals !!
CSC 222: Object-Oriented Programming
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Eclipse.
Chapter 2: The Visual Studio .NET Development Environment
Lecture 2 D&D Chapter 2 & Intro to Eclipse IDE Date.
Programming in visual basic .net Visual Basic Building Blocks
Development with Eclipse
Basic 1960s It was designed to emphasize ease of use. Became widespread on microcomputers It is relatively simple. Will make it easier for people with.
Introduction to Eclipse
Debugging and Troubleshooting Code
Introduction to Python
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Eclipse Navigation & Usage.
Testing and Debugging.
Computer Programming I
Loop Structures.
Debugging CMSC 202.
A451 Theory – 7 Programming 7A, B - Algorithms.
LESSON 20.
Using Visual Studio with C#
Important terms Black-box testing White-box testing Regression testing
Important terms Black-box testing White-box testing Regression testing
Games Engines and Intro to Programming
Test Automation For Web-Based Applications
ReSharper Dainius Kreivys.
Using a Debugger 1-Jan-19.
Testing, debugging, and using support libraries
Object oriented vs procedural vs event driven programming
Debugging Visual Basic Programs
By Rajanikanth B Eclipse IDE Overview By Rajanikanth B
Running a Java Program using Blue Jay.
Unit 1 Programming - Assignment 3
Workshop for Programming And Systems Management Teachers
Presentation transcript:

IDE’s and Debugging

IDE(Integrated Development Environment) Designed to provide the facilities a programmers needs for software development IDE’s provide a text editor, debugger and compiler all in one application. Sometimes these can have more features than we need but are generally designed to make are coding experience as pleasant, customised and quick as possible.

IDE Examples IDE’s include: Netbeans - C, C++, Python, Perl, PHP, Java, Ruby and more Eclipse - Java, JavaScript, PHP, Python, Ruby, C, C++ and more Komodo - Perl, Python, Tcl, PHP, Ruby, Javascript and more Visual Studio - Visual C++, VB.NET, C#, F# and others Many others!

IDE: Some advantages Look and feel customisation such as themes, fonts, colours etc. Auto compiles and runs code Folder Structure for the project Provide Syntax highlighting Automatic indentation for code blocks Line numbers Auto code completion Auto code for inherited members Provide debugging functionality, identifying syntax and obvious errors Often provide GUI builders(Drag drop systems) for increased speed Plug ins for additional functionality + more

IDE: Some negatives Can create custom IDE code which is generalised and may not be compatible with other development software Can cause incompatibility with other IDE’s May require the IDE installed to run development code Can cause dependence on IDE shortcuts, creating lazy developers Uses greater system memory than text editors Some require purchasing costs or licenses Plug ins while useful don’t always provide full information about how the work

Code Templates Allows the IDE to create templates for various functions such as conditionals. The example opposite would put in a basic shell for a if statement if the programmer typed in “if” followed by tab on the keyboard. Netbeans and other IDE’s offer many shortcuts The first one most use is the main method which can be generated at project creation.

General Templates You can also use the Template Manager to create entire files based on pre designed code by yourself Or use/edit the basic built in one’s Netbeans provides.

Debugging The process of detecting and removing of existing and potential errors (also known as 'bugs') in a software code that can cause it to behave unexpectedly or crash. To prevent incorrect operation of a software or system, debugging is used to find and resolve bugs or defects.

Debugging Process - Tracing A technique of following (Tracing) your code line to line as the computer would. Working out exactly the values of variables throughout the program flow line by line. Programmers do this to make sure the program makes sense and to identify errors in the code. It can also be done to help understand another programmers code.

Debugging Process – Simple Tracing Example String title =“HNC Computing"; int number = 370; boolean result = true; number = number - 5; System.out.println( "Course is " + title); System.out.println( "Days are " + number); System.out.println( "Answer is " + result) result = false; System.out.println( "Answer is now" + result); When tracing you’d go through the code making a note of all variables. As you go line by line you would update the value of the variable. This could be done on paper. An example for this simple program is below: Char: J String title: HNC Computing int number = 370 365 boolean result: true false

Debugging Process – Breakpoints A line of code where you want to "pause" the execution of a program. This suspends the program allowing you to examine the code at this point of execution. Before starting the debugger, you need to set at least one breakpoint to suspend the execution inside the program.

Debugging Process – Watch Lists Allows you to "watch" the value of a variable. For example, if you have a variable named "x", you can type x inside the watch window and watch the value as you go from breakpoint to breakpoint. To add expressions to a watch list in NetBeans: 1. Click on the "Watches" tab at the bottom. 2. Type in a variable where it says <Enter new watch> to watch the name variable and press the enter button.