Two questions on ipa files.
So to create a debuggable IPA, you will need to Archive it and save for Ad-Hoc or Enterprise.
As far as logging to the console in this ad-hoc build, there are several ways to do this, see this answer.