I\'m trying to dismiss a modal view controller and am getting the following error:
* Terminating app due to uncaught exception \'NSRangeException\', reason:
In Xcode 4 you can set an exception breakpoint in the breakpoint editor. Every time an exception is thrown (or caught depending on how you set it up), your application will pause on the line that threw the exception.
if you are running in the debugger, then absolutely you should be able to see the actual line that the exception is being thrown on.
add an exception breakpoint by clicking the breakpoints tab at the top of the left pane, then click the plus sign at the lower left. Add an exception breakpoint.