News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Console output, again

Started by temporaries, January 03, 2013, 09:46:41 PM

Previous topic - Next topic

temporaries

Hello all.

I'm sorry, but the previous topic (http://forums.next.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


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.

Jenna

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".

temporaries

Yes, I'm on Ubuntu.
Nevertheless, output doesn't appear in Code::Blocks tab of Logs & others window even I added a ./

Jenna

Quote from: 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 ./

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):
Launching tool 'Console output to log': ./test  (in /tmp/test/bin/Debug)
stderr>
stdout> Hello world!
stdout>
Tool execution terminated with status 0