Author Topic: Is there a way to copy output from console  (Read 5769 times)

Offline clhsieh

  • Single posting newcomer
  • *
  • Posts: 4
Is there a way to copy output from console
« on: April 19, 2013, 04:35:33 am »
I know there is a thread similar to this question
Capture console output and display in Code::Blocks(http://forums.codeblocks.org/index.php?topic=13175.0)
I've tried it, but it seems can only use for nearly complete project cause it seems just a argument saved executor.

My situation is that I am trying to debug and the data structure can't be access for the watcher, I need to print it out on the console.
And when the data is too big console may have really bad layout(like a 100x100 matrix), so I need to copy it out and check it.
The "Tools..." seems cannot used in debug(tracing) mode, at least I can't find it.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Is there a way to copy output from console
« Reply #1 on: April 19, 2013, 09:19:19 am »
1. print it to file
2. use python scripting inside gdb
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline clhsieh

  • Single posting newcomer
  • *
  • Posts: 4
Re: Is there a way to copy output from console
« Reply #2 on: April 22, 2013, 08:40:49 am »
1. print it to file
2. use python scripting inside gdb

Thanks for your reply
Is there any detail of the second method?
I never use gdb without IDE help, so I am very unfamiliar with it.