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 » Mon Jun 01, 2009 12:42 pm

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 » Wed Jun 03, 2009 2:04 am

/* 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 » Wed Jun 03, 2009 1:29 pm

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 » Thu Jun 04, 2009 12:00 am

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 » Thu Jun 04, 2009 2:11 am

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 » Thu Jun 04, 2009 5:33 pm

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 » Fri Jun 05, 2009 2:13 am

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

-Tony

Post Reply