News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

How can Output the log on Debugger

Started by lfjking, November 20, 2016, 07:07:37 AM

Previous topic - Next topic

lfjking


Vc ++ available OutputDebugString output debug log
CodeBlocks what to use to output, outputStr tried not found a Log window display
Will the function
Without this debugging output is very inconvenient to observe the code. . . .

lfjking


Debug output does not have to be in the Debugger window
As long as the output in the operation of the information I want to debug out on it
Project is not DOS

BlueHazzard

Hmm i do not understand what you want...

What do you want to do?
Put a output only while debugging? Put a string to a cmd window only during debugging? Put a output in the debug log output window of codeblocks?

What compiler are you using?
What debugger are you using?

oBFusCATed

He want to use OutputDebugString. In VStudio this is printed in the debugger's log.

@lfjking: It is up to gdb to support this, C::B can't do anything about this problem. So it is probably better to ask about this in the mingw or gdb projects.
(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!]

lfjking

thanks for all help.
now I know the question must be do  in another way.
so, may be i could show on cmd.
:) :) :) :) :) :) :)

BlueHazzard

Quote from: lfjking on November 30, 2016, 12:03:55 AM
thanks for all help.
now I know the question must be do  in another way.
so, may be i could show on cmd.
:) :) :) :) :) :) :)
still don't get your question... If you want to put something on the cmd:
printf("Your text")

lfjking

Quote from: BlueHazzard on November 30, 2016, 12:35:17 AM
Quote from: lfjking on November 30, 2016, 12:03:55 AM
thanks for all help.
now I know the question must be do  in another way.
so, may be i could show on cmd.
:) :) :) :) :) :) :)
still don't get your question... If you want to put something on the cmd:
printf("Your text")


not must cmd
I only want to  show some log than I want to see, Where all can
cmd will must creat the dos, Trouble with engineering。
now, I use the wxLogMessage show , Something is better than nothing

Pecan

Click on "Home" to get to the forum top categories.

Then type "createconsole" in the search box.

lfjking

thanks
I only want to show something(not show on logview) to myself at debug mode while running time.
the Logview I had one in the program;