Author Topic: Code::Blocks on Linux, any way to replace OutputDebugString?  (Read 5697 times)

Offline sipickles

  • Multiple posting newcomer
  • *
  • Posts: 19
Code::Blocks on Linux, any way to replace OutputDebugString?
« 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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Code::Blocks on Linux, any way to replace OutputDebugString?
« Reply #1 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline XayC

  • Multiple posting newcomer
  • *
  • Posts: 94
Re: Code::Blocks on Linux, any way to replace OutputDebugString?
« Reply #2 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