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) ...
For serious work in the Console, few utilities (if any) can match the prowess of Take Command. It’s not cheap, but for command line jockeys, the savings in time and errors are worth the price. Serious ...