Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: marfi on November 15, 2005, 02:34:28 pm

Title: Stderr redirection to debugger window
Post by: marfi 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... :?
Title: Re: Stderr redirection to debugger window
Post by: killerbot 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 ???
Title: Re: Stderr redirection to debugger window
Post by: takeshimiya 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.

Title: Re: Stderr redirection to debugger window
Post by: killerbot on November 15, 2005, 03:07:31 pm
and also stdout

or C++ speaking : cerr, cout
 :P
Title: Re: Stderr redirection to debugger window
Post by: takeshimiya on November 15, 2005, 03:13:50 pm
Exactly.  :)
Title: Re: Stderr redirection to debugger window
Post by: mandrav on November 15, 2005, 03:24:21 pm
Guys, please file a feature request or it 'll be buried here...  :roll:
Title: Re: Stderr redirection to debugger window
Post by: killerbot on November 15, 2005, 03:26:14 pm
doing it at this very moment.
Title: Re: Stderr redirection to debugger window
Post by: takeshimiya on November 15, 2005, 03:53:55 pm
Another thing:
Output only (stdout)?
Or output and input (stdout and sdtin) like a terminal?