Author Topic: Debugging console-application  (Read 2569 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Debugging console-application
« 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 ?

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Debugging console-application
« Reply #1 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: [Select]
set new-console on
but this doesn't work  under linux, the doc's are saying this is for windows (mingw, cygwin) port only

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: Debugging console-application
« Reply #2 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: [Select]
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...
Be patient!
This bug will be fixed soon...