There are multiple tutorials on how to debug applications on jailbroken devices. These usually involves resigning debugserver, scp and running it from ssh with few tweaks to the entitlements and signature.
Is there a way to the do the same thing on non-jailbroken devices ?