User forums > General (but related to Code::Blocks)

Is there a way to copy output from console

(1/1)

clhsieh:
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.

oBFusCATed:
1. print it to file
2. use python scripting inside gdb

clhsieh:

--- Quote from: oBFusCATed on April 19, 2013, 09:19:19 am ---1. print it to file
2. use python scripting inside gdb

--- End quote ---

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.

Navigation

[0] Message Index

Go to full version