User forums > Using Code::Blocks

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

(1/1)

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.

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

Navigation

[0] Message Index

Go to full version