Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sipickles on November 25, 2007, 01:28:40 pm

Title: Code::Blocks on Linux, any way to replace OutputDebugString?
Post by: sipickles on November 25, 2007, 01:28:40 pm
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
Title: Re: Code::Blocks on Linux, any way to replace OutputDebugString?
Post by: thomas on November 25, 2007, 03:06:12 pm
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.
Title: Re: Code::Blocks on Linux, any way to replace OutputDebugString?
Post by: XayC on November 25, 2007, 09:46:44 pm
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