Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: temporaries on January 03, 2013, 09:46:41 pm

Title: Console output, again
Post by: temporaries on January 03, 2013, 09:46:41 pm
Hello all.

I'm sorry, but the previous topic (http://forums.codeblocks.org/index.php?topic=13175.0) about this problem is not clear enough for me.
I filled "Executable" and "Working directory" fields as mentioned in old topic
(http://s7.postimage.org/us69ctak7/edit_tool.jpg) (http://postimage.org/image/us69ctak7/)

but how exactly can I pipe output to C::B log?

P.S. I have been working with Code::Blocks for two hours only, therefore I cannot immediately get the solution discussed.
What exactly should I configure to see stdout in Code::Blocks?

Thank you.
Title: Re: Console output, again
Post by: Jenna on January 03, 2013, 10:33:18 pm
If you are on linux (your image looks like ubuntu), you need to add "./"  before "${TARGET_OUTPUT_BASENAME}".
The output will be shown in the "Code::Blocks" tab of "Logs and others".

If you have the contrib-plugins installed, you can add a keyboard shortcut to the menu-entry with the keybinder-plugin: "Settings -> Editor -> Keyboard shortcuts".
Title: Re: Console output, again
Post by: temporaries on January 04, 2013, 09:51:50 am
Yes, I'm on Ubuntu.
Nevertheless, output doesn't appear in Code::Blocks tab of Logs & others window even I added a ./
(http://s2.postimage.org/3zomv4dlx/edit_tool.jpg) (http://postimage.org/image/3zomv4dlx/)
Title: Re: Console output, again
Post by: Jenna on January 04, 2013, 09:57:12 am
Yes, I'm on Ubuntu.
Nevertheless, output doesn't appear in Code::Blocks tab of Logs & others window even I added a ./
(http://s2.postimage.org/3zomv4dlx/edit_tool.jpg) (http://postimage.org/image/3zomv4dlx/)
Did you buildd the active target ?
Did you run the tool from the menu ?
What is the output in "Code::Blocks"-tab ?
Should be something like this (executable-name is test in my case, just the console sample):
Code
Launching tool 'Console output to log': ./test  (in /tmp/test/bin/Debug)
stderr>
stdout> Hello world!
stdout>
Tool execution terminated with status 0