[wxpython-mac] Where is this "Debug" message coming from?

Robin Dunn robin at alldunn.com
Fri May 16 19:49:52 PDT 2008


Ian York wrote:
> MacOS10.5.2, Intel Mac
> Python 2.5.1
> wxPython 2.8.4.0
> 
> I have an intermittent bug in my program.  The action fails, but there 
> is no Python error or trackback message; instead, this message is 
> printed out:
> [Debug] 15:26:17: wxColour::Set - couldn't set to colour string 'None'
> 
> (Or 'True' or 'False')
> 
> It looks as if the debug is swallowing the trackback I would like to use 
> to find where my problem is.  (I've tried all the wx-colour type actions 
> that should be getting called and they all seem to be getting valid 
> input as far as I can see.)
> 
> It's not coming from my program, and I can't find the source of it, by 
> e.g. grepping the wxpython library.
> Any ideas what's sending the message, and how I can override it to get 
> useful information?

As John pointed out it's coming from a wxLog message, which are not
turned into Python exceptions.  Only wxASSERTs and wxCHECKs are turned
into exceptions.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!




More information about the wxpython-mac mailing list