News:

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

Main Menu

Is there a way to copy output from console

Started by clhsieh, April 19, 2013, 04:35:33 AM

Previous topic - Next topic

clhsieh

I know there is a thread similar to this question
Capture console output and display in Code::Blocks(http://forums.next.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
(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!]

clhsieh

Quote from: oBFusCATed on April 19, 2013, 09:19:19 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.