title: How to debug or view NSLog output from iOS device where USB is occupied?
body: <p>I'm developing a recorder app on the iPhone. For testing my app with external USB microphones, I need to unplug the iPhone from the Mac so that I can attach the microphone.</p>
  
  <p>My problem is that once the iPhone is not connected to the Mac anymore, I can not debug my iPhone app, nor can I view the console output. Is there a way to connect the debugger through another medium than the USB cable, e.g. network or bluetooth?</p>
  
  <p>I've read that after jailbreaking your iPhone, it is possible to install ssh, <a href="https://stackoverflow.com/questions/11596435/ios-how-to-view-nslog-and-printf-output-in-ssh-session-on-phone">connect to the iPhone using ssh, and tail the syslog</a>. This is a solution that I would immediately use if it would not require jailreaking the phone. I do not want to jailbreak every phone on which I would like to test my app.</p>
  
  <p>Any nonstandard but reliable solution for viewing log output is also appreciated. E.g. I'm currently using a quick'n'dirty written HTTP server on the iPhone and then using the browser or telnet from the Mac to connect to the iPhone and view the console output.</p>