---
title: "#6: Debugging Tips 🐞"
url: https://littlebitesofcocoa.com/6-debugging-tips
author: Jake Marsh
date: 2015-05-25
published: 2015-05-25
topics: ["Tools","Debugging"]
description: "Today we'll take a look at a few handy tips and tricks to know about when debugging. Make sure to always add an exception breakpoint to every project."
---

# #6: Debugging Tips 🐞

By Jake Marsh, May 25, 2015. HTML: https://littlebitesofcocoa.com/6-debugging-tips

Today we'll take a look at a few handy tips and tricks to know about when **debugging**.

## Exception Breakpoint

Make sure to always add an **exception breakpoint** to every project. Xcode will pause anytime an exception is thrown and let us poke around.

<img src="https://media.littlebitesofcocoa.com/bite-assets/006-debugging-tips-exception-breaks@2x.png" style="max-width: 237px;" />

## Conditional Breakpoints

Break *exactly* when we want to.

<img src="https://media.littlebitesofcocoa.com/bite-assets/006-debugging-tips-conditional-breaks@2x.png" style="max-width: 373px;" />

## Evaluate an Expression

With `expression` or `e` we can even modify values in our app, and then continue running.

<img src="https://media.littlebitesofcocoa.com/bite-assets/006-debugging-tips-eval@2x.png" style="max-width: 212px;" />

## Property Breakpoints

Here's one that is not as widely known as it should be:

<img src="https://media.littlebitesofcocoa.com/bite-assets/006-debugging-tips-property-breaks@2x.png" style="max-width: 306px;" />

If we set a breakpoint on the line of code containing a **property** definition, our application will pause *anytime* that **property's** value is changing and display a **stack trace** of the **function** calls that ultimately caused the change.
