News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

place for stdout output during debugging

Started by lehe, April 09, 2009, 04:52:56 AM

Previous topic - Next topic

lehe

Hi,
I just found that during debugging in CB, the stdout put info that are supposed to appear on the console window changes to show in the "Debugger(debug)" window. I don't know what caused this change. Does someone know why and how to switch between these two ways?
Thanks!

ollydbg

really? Which OS? Which version?

In my windows, no situation as you mentioned. But if you are debugging a GUI program, the stdout may redirect to GDB output.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

lehe

A simple console program not involving GUI.
Under Ubuntu8.10.

ollydbg

Quote from: lehe on April 09, 2009, 05:00:56 AM
A simple console program not involving GUI.
Under Ubuntu8.10.
Oh, Sorry, I can't help any more, because I only use Windows XP. :(
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.