title: How to debug a Screensaver in OS X
body: <p>I was wondering if there was any decent way, other than NSLog-ing just about everything - to properly debug a Screensaver app bundle in OS X?  </p>
  
  <p>The "Screensaver" is a project type in Xcode, but there's obviously no Build and Go debugging.  Further, I've found that in fact my bundle is getting loaded in to the </p>
  
  <pre><code>/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app 
  </code></pre>
  
  <p>application as some sort of plugin.</p>
  
  <p>So is there a decent way to debug your code?  Looking at crash reports and NSLog-ing to the console <em>helps</em>, but it's far from perfect.</p>