I would like to test how my app behaves when the app is quit and the user taps a notification in notification center so that my app is launched. In `- didFinishLaunchingWithOptions` you can check for the key `UILocalNotification *notification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];` but how can I debug this?

If i start running the app in Xcode then I quit the app it will lose the connection to Xcode.