title: Xcode - is it possible to debug crashes in the Interface Builder's Live Rendering process (IBDesignable)?
body: <p><strong>Question</strong></p>
  
  <p>Is it possible to set breakpoints and debug code executed by Xcode / Interface Builder's Live Rendering?  That is, I am using the IBDesignable and IBInspectable attributes to affect the view as it is rendered in an interface builder storyboard, and would like to be able to debug "IB crashed" errors.  I don't recall this from the WWDC session, other than the section on prepareForInterfaceBuilder.</p>
  
  <p><strong>Context</strong></p>
  
  <p>I recently started seeing a number of errors reporting that IB crashed when attempting to render my code.  I ultimately traced it to an otherwise innocent line of code in layoutSubviews in one of my views that was linked from the storyboard.  The specific problem that IB - when rendering live views, called layoutSubviews before setting all the view's child view properties (which seems like a separate problem, in and of itself).  This contrasted with the simulator and device, in which the views were set ahead of the first call to layoutSubviews.  Long story short though, it involved diffing a bunch of files to find the offending change.  Suffice to say, I could have found the problem quickly if it were possible to set breakpoints and trap the crash.</p>
  
  <p>Has anyone figured out how to debug and/or generally trap these problems, or is that access not yet available?</p>