Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: immortalsoFar on December 04, 2016, 08:43:20 am

Title: Getting stderr output in the debug window.
Post by: immortalsoFar on December 04, 2016, 08:43:20 am
I'm pretty certain we used to be able to printf/sprintf to stderr and the output be shown somewhere but now that's no longer the case.

Running Codeblocks from a console doesn't do the trick.

I can redirect stderr with freopen but seeing the errors (eg GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed) as they happen is somewhat important. Setting Settings/Debugger/Full (debug) log does show the stderr output in the debug window but it also shows every damned watched variable, stack frame etc as well every single time a breakpoint is hit which makes it, to all intents and purposes, useless.

How can I get the stderr output without the corresponding junk in the debugging window?

Thanks.
Title: Re: Getting stderr output in the debug window.
Post by: oBFusCATed on December 04, 2016, 12:33:48 pm
Is your project a console based one?