08DebuggingSmall

08DebuggingSmall - c drop a marker into the code so when it...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CMSC 131 Fal 2009 Jan Plane Lecture Set #8: Debugging 1. Complete Class Summary 2. The Eclipse Debugger CMSC 131 Fal 2009 Jan Plane 1 Putting the pieces together c Constructors c default constructor c constructors with parameters c copy constructors c Data c data members: instance/static and public/private c local variables c stack and heap c null references c Methods c instance/static and public/private c overloading: toString and others c Libraries c importing and using methods from the library (the API) c JUnit Testing c Exceptions c Throwing, trying, catching CMSC 131 Fal 2009 Jan Plane 2 The problem c Problem c JUnit can only tell if that passes or fails and where c 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] c Solution c 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
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 CMSC 131 Fal 2009 Jan Plane 3 Terminology c Break Point
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: c drop a marker into the code so when it runs the execution will stop at that point c allows you to not have to go step by step through things you believe are correct c Step Over c takes one step in the current method c if that step is a method call, it performs that whole method call and steps to the next line in the current method c Step Into c takes one step in the current method c 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 Fal 2009 Jan Plane 4 Eclipse c Perspective c Debug Perspective c Java Perspective c Run c Debug As c Run As c Know if it is still running c Watch the red square click it to kill CMSC 131 Fal 2009 Jan Plane 5 Corner Cases c Those that fit between c or are different than the normal c examples: c really long c empty string c single character word...
View Full Document

Page1 / 2

08DebuggingSmall - c drop a marker into the code so when it...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online