找了好久也不知道KDevelop里面如何调试控制台程序,后来阅读Kdevelop上面的FAQ终于找到了答案~~~

Debugging a console application : How do I get the console to show so I can enter data? In the Project Options dialog, go to the Debugger tab and check Enable separate terminal for application IO

~~~~就是一句话,简简单单,让我迷惑了很久~~~~