News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Code::Blocks on Linux, any way to replace OutputDebugString?

Started by sipickles, November 25, 2007, 01:28:40 PM

Previous topic - Next topic

sipickles

Hi,

Well, the title says it all -

Is there a way to see debug messages in the IDE, like OutputDebugString does in MS?

Thanks

Si

thomas

No idea what special stuff MS does (and honestly I don't care), but whatever you send to stdout via printf or puts or related functions appears in the build/run log, if that is what you want.

If you want to remove that output in "release" build, you can define a macro akin to assert which uses printf or whatever.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

XayC

From what I've been able to find on the internet, there's no equivalent function for OutputDebugString in Linux.
I guess you'll have to find another way, maybe using printf.

Regards, XayC