Friday Session #1: Debugging

Please note, this blog entry is from a previous course. You might want to check out the current one.

The individual lectures of the course where held each weak on Monday and Wednesday. On Fridays extra lectures were held about a special topics.

Between lecture #2 and lecture #3 the first Friday session addressed debugging. It can be found on iTunes titled “Debugger (September 30, 2011)”.

In short the lecture explains how to

  • set (conditional) breakpoints for debugging,
  • set an exception breakpoints to catch exceptions,
  • use mouseover to show show current variable values during debugging,
  • print values via e.g. print [self operandStack],
  • print object descriptions e.g. via po [self operandStack],
  • and write own description methods for new classes e.g.
-(NSString *)description {
     return [NSString stringWithFormat:@"stack = %@", self.operandStack];
}
FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Leave a Reply

Your email address will not be published.