Debug iOS Application using distribution certificate
It's completely normal. Distribution certificates are not meant for development, and XCode won't let you debug that application, that's why it gets disconnected from the app.

To see the logs in the device, if the application is still being executed, you can use one log viewer, like http://lemonjar.com/iosconsole/