Debugging console app

Bjoern Krombholz bjkro at gmx.de
Wed Mar 15 14:28:02 GMT 2000


Jacek Stolarczyk wrote:
> 
> Hi,
> 
> I'm trying to debug a console app usig the internal debugger. The app uses
> a bunch of printf/scanf pairs and normally works without much problems.
> But when I try to run in within the debugger I get on the stdout tab the
> result of the first printf (say "Enter first number: "), but the where
> should I enter this number so it can be scanf'ed? Putting it in stdout tab
> echoes this number but nothing else happens. How should I debug such app
> then and still use this simple method of entering numbers?
> 

At internal debugger's current state you cannot debug such programs.
Use kdbg (external debugger) instead which opens a terminal for all the
standard input/output operations.

Bjoern




More information about the KDevelop mailing list