Author Topic: Stderr redirection to debugger window  (Read 8399 times)

Offline marfi

  • Multiple posting newcomer
  • *
  • Posts: 27
Stderr redirection to debugger window
« on: November 15, 2005, 02:34:28 pm »
Hi,
does anybody know whether is possible to redirect standard stderr output to one of C:B's output logs? (for example to Debugger log). I tried to use NVWA "leak detector" which puts all info into stderr, but I cant read it, because stderr is not displayed anywhere (I guess...). I rewrote nvwa's files so that it writes info into file, but it is not elegant solution... :?

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Stderr redirection to debugger window
« Reply #1 on: November 15, 2005, 02:56:03 pm »
I second this request.

It would be a very powerfull and usefull addition to CB.
Not just for console applications but also for GUI applications, since in that latter case it can allow very quick debugging. The debug window does have a Log() method, but that's not portable code.

I use the CodeComposerStudio IDE for debugging some of my embedded platfrom applications and there they have a special output window where printf, ... stuff shows up, off course on the embedded platform this will end up as no-op.

If I am not mistaking MS Visual Studio 2005 now also have it. MS 2005 has some very nice new features, time to try to implement them as plug-ins for CB (I am going to try to implement at least one of them).

This is one of those, how could w live without that features. Once you have it, you never want to go back.


kind regards,
Lieven


PS : anyone any idea on RC3 or is it RC2bis ???

takeshimiya

  • Guest
Re: Stderr redirection to debugger window
« Reply #2 on: November 15, 2005, 03:06:46 pm »
Most IDEs, if not all, includes another tab in the messages which redirects the stderr or is a Terminal itself.


Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Stderr redirection to debugger window
« Reply #3 on: November 15, 2005, 03:07:31 pm »
and also stdout

or C++ speaking : cerr, cout
 :P

takeshimiya

  • Guest
Re: Stderr redirection to debugger window
« Reply #4 on: November 15, 2005, 03:13:50 pm »
Exactly.  :)

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Stderr redirection to debugger window
« Reply #5 on: November 15, 2005, 03:24:21 pm »
Guys, please file a feature request or it 'll be buried here...  :roll:
Be patient!
This bug will be fixed soon...

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: Stderr redirection to debugger window
« Reply #6 on: November 15, 2005, 03:26:14 pm »
doing it at this very moment.

takeshimiya

  • Guest
Re: Stderr redirection to debugger window
« Reply #7 on: November 15, 2005, 03:53:55 pm »
Another thing:
Output only (stdout)?
Or output and input (stdout and sdtin) like a terminal?