when a C++ program reads from cin
, the ddd provides it with "1" instead of letting me type the input in its console. Since the program reads interactive commands, "1" is an invalid command and ddd seems to have an infinite supply of them, the result is an infinite loop of "invalid command" output.
Have anybody encountered such behavior and knows how to overcome this? I feel so frustrated that in the 21st century I have to use a command-line gdb, as I did in the school 20 years ago. eclipse's built-in debugger is too slow to be useful.
ddd version is 3.3.11. the code snippet:
while (true)
{
cout << greeting;
string cmd;
cin >> cmd;
if (cmd == "e")
{
// etc.