Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AARRGGHHH

macrumors newbie
Original poster
Nov 25, 2011
4
0
XCode version is 3.2.6 running on Snow Leopard. A simple C++ console program I'm working on is opening in the Debugger Console. But it doesn't do anything:

Code:
Loading program into debugger…
Program loaded.
run
[Switching to process 262]
Running…
$$$$$$$$$$$$$$$$$$ Welcome to THE GODFATHER Role Playing Game $$$$$$$$$$$$$$$$$$

Main Menu
---------

1) See Rules
2) Play Game
3) Quit

1
2
3
0
4

However, when I run it from Terminal, it works fine, so the issue is not the program itself. The issue seems related to XCode. I'm loading the code into XCode by starting a new project, and replacing the "Hello World" code in main with my code.
 
Last edited:
I'd appreciate any suggestions on this one, the program continues to run fine when opened in the Unix terminal, but it won't run in XCode (and I need to debug it).

Thanks
 
Any input you type into the debugger window goes to the debugger, not to your program.

If you want to debug an interactive CLI program as it runs, try attaching ("attach to process" command) to it after running it in a terminal window.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.