How to put text in the Debug Output pane?

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
spamiam
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Wed Apr 22, 2009 1:40 am

How to put text in the Debug Output pane?

Post by spamiam »

I had posted this question (less clearly) i few weeks ago. I thought I would try again.

Is there a wxWidget that allows me to put my own text in the Debug "Output" pane? Maybe a log or a stream that is already defined that I can use? Or something else?

-Tony
protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol »

/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!
spamiam
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Wed Apr 22, 2009 1:40 am

Post by spamiam »

Thanks. Unfortunately, I have seen that function already. Actually I am already using a variant of it (wxLogMessage)! When I tried putting some simple text into the wxLogDebug(), it did not appear in the Debug output window. I did try to manually define "__WXDEBUG__ ", but the output still did not appear in the debug window. What else can I do to get text to appear in the debug output window? I did not define a specific target for the wxLogDebug method assuming it already knows where to send the text....

-Tony
protocol
Moderator
Moderator
Posts: 680
Joined: Wed Jan 18, 2006 6:13 pm
Location: Dallas, TX
Contact:

Post by protocol »

you have to build your application against the __WXDEBUG__ flag, you can't just define it in code (h/cpp).

Other than the above, you should be able to use printf(...) like normal.
/* UIKit && wxWidgets 2.8 && Cocoa && .Net */
QuRegExmm
wxPCRE & ObjPCRE - Regex It!
spamiam
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Wed Apr 22, 2009 1:40 am

Post by spamiam »

protocol wrote:you have to build your application against the __WXDEBUG__ flag ...
How do I do that using wxDevC++? I just click the green triangle in wxDevC++ which will compile the project for debugging.

Maybe I should post this question in the wxDevC++ section?

-Tony
tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Post by tbreina »

spamiam wrote:
protocol wrote:you have to build your application against the __WXDEBUG__ flag ...
How do I do that using wxDevC++? I just click the green triangle in wxDevC++ which will compile the project for debugging.

Maybe I should post this question in the wxDevC++ section?

-Tony
Project->Project Options->Parameters->Preprocessor Definitions. Add __WXDEBUG__ to the list.

-Tony
Everybody's got something to hide except for me and my monkey.
spamiam
I live to help wx-kind
I live to help wx-kind
Posts: 180
Joined: Wed Apr 22, 2009 1:40 am

Post by spamiam »

Ah, That makes sense. I will try it that way!

-Tony
Post Reply