Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: tiwag on October 08, 2005, 10:56:12 am

Title: Debugging console-application
Post by: tiwag on October 08, 2005, 10:56:12 am
i wanted to debug a console application, set a breakpoint, started the debugger and it stops at the breakpont but i can't see a console window with my program's output.
Have i to use any special initial gdb command for that ? which ?
Title: Re: Debugging console-application
Post by: tiwag on October 08, 2005, 01:42:15 pm
when using mingw gdb on windows there was a solution for this problem writing to .gdbinit config file,
Code
set new-console on

but this doesn't work  under linux, the doc's are saying this is for windows (mingw, cygwin) port only
Title: Re: Debugging console-application
Post by: mandrav on October 08, 2005, 04:34:51 pm
when using mingw gdb on windows there was a solution for this problem writing to .gdbinit config file,
Code
set new-console on

but this doesn't work  under linux, the doc's are saying this is for windows (mingw, cygwin) port only

C::B under windows, uses 'set new-console' for console projects (no need to use .gdbinit).
Under other OSes this doesn't work and we 'll have to find another solution...