Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Debugging in CMSC 131 Fall 2008: Using the Eclipse Debugger - Prof. Jandelyn Dawn Plane, Study notes of Computer Science

This document from the cmsc 131 fall 2008 course by jan plane provides an overview of debugging concepts and introduces the use of the eclipse debugger. Topics covered include constructors, data, methods, libraries, and terminology such as breakpoints, step over, and step into. The document also mentions corner cases for testing.

Typology: Study notes

Pre 2010

Uploaded on 07/30/2009

koofers-user-lrn
koofers-user-lrn 🇺🇸

10 documents

1 / 3

Toggle sidebar

Related documents


Partial preview of the text

Download Debugging in CMSC 131 Fall 2008: Using the Eclipse Debugger - Prof. Jandelyn Dawn Plane and more Study notes Computer Science in PDF only on Docsity! 1 CMSC 131 Fall 2008 Jan Plane Lecture Set #10: Debugging 1. Complete Class Example 2. The Eclipse Debugger CMSC 131 Fall 2008 Jan Plane 1 Complete Example – Putting the pieces together  Constructors  default constructor  constructors with parameters  copy constructors  Data  data members: instance/static and public/private  local variables  stack and heap  null references  Methods  instance/static and public/private  overloading: toString and others  Libraries  importing and using methods from the library (the API)  JUnit Testing  Exceptions  Throwing, trying, catching 2 CMSC 131 Fall 2008 Jan Plane 2 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 2008 Jan Plane 3 Terminology  Break Point  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  Step Over  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
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved