OK, this may seem like the clueless n00b question of the century ... but in Project Builder or xCode it seems to be a misery to debug any code for "simple tools" (aka ordinary stdio applications) ...
Here’s a cool tutorial that shows how you can use Backgrounder and Wi-Fi sync from Cydia to remotely debug applications using Xcode. If someone manages to test it, please let us know in the comments.