DOC PREVIEW
UMD CMSC 131 - Lecture Set #8: Debugging

This preview shows page 1 out of 3 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Lecture Set 8 Debugging Complete Class Summary The Eclipse Debugger 1 2 CMSC 131 Spring 2010 Jan Plane Putting the pieces together Constructors Data instance static and public private overloading toString and others Libraries data members instance static and public private local variables stack and heap null references Methods default constructor constructors with parameters copy constructors importing and using methods from the library the API JUnit Testing Exceptions Throwing trying catching CMSC 131 Fall 2009 Jan Plane 1 1 The problem Problem JUnit can only tell if that passes or fails and where Need a way to be able to see what is in memory variables at every step to be able to do complete trace like that call stack examples we have been doing Solution The debugger gives the ability to go through the code displaying additional information similar to the by hand call stack that we have been doing CMSC 131 Fall 2009 Jan Plane 2 Terminology Break Point Step Over drop a marker into the code so when it runs the execution will stop at that point allows you to not have to go step by step through things you believe are correct takes one step in the current method if that step is a method call it performs that whole method call and steps to the next line in the current method Step Into takes one step in the current method if that step is a method call it steps into that method so that you can then step through it before getting to the next line in the method you were in CMSC 131 Spring 2010 Jan Plane Ben Bederson 3 2 Eclipse Perspective Run Debug Perspective Java Perspective Debug As Run As Know if it is still running Watch the red square click it to kill CMSC 131 Fall 2009 Jan Plane 4 Corner Cases Those that fit between or are different than the normal examples really long empty string single character word CMSC 131 Fall 2009 Jan Plane 5 3


View Full Document

UMD CMSC 131 - Lecture Set #8: Debugging

Documents in this Course
Set #3

Set #3

7 pages

Exam #1

Exam #1

6 pages

Exam #1

Exam #1

6 pages

Notes

Notes

124 pages

Notes

Notes

124 pages

Load more
Download Lecture Set #8: Debugging
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Set #8: Debugging and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Set #8: Debugging and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?