Author Topic: Any equivalent debug output TRACE in codeblocks and MinGW  (Read 7434 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Any equivalent debug output TRACE in codeblocks and MinGW
« on: February 06, 2009, 12:46:10 pm »
Hi, If I design a GUI project in C::B and Mingw, For example, a wxWidgets project. How can I output the debug information.

I have the experience in MFC in windows, there TRACE() / OutputDebugString() can output the debug information in the output window of visual studio IDE.

So, What's the equivalent way in C::B? Once I know that printf can be redirect to GDB's output window, is it the only way?

Thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.