Author Topic: Console output, again  (Read 4735 times)

Offline temporaries

  • Single posting newcomer
  • *
  • Posts: 2
Console output, again
« 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


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.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Console output, again
« Reply #1 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".

Offline temporaries

  • Single posting newcomer
  • *
  • Posts: 2
Re: Console output, again
« Reply #2 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 ./

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Console output, again
« Reply #3 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 ./

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