On Thu, Aug 21, 2008 at 2:30 PM, John de la Garza <[EMAIL PROTECTED]> wrote:

> where does this.debug output to?
>
> the docs say it goes to the javascript console but I don't see it there
>

Hi John,

There was a problem, and then it was fixed, and then it was inadvertently
unfixed, and then it was re-fixed today.  So the problem depends on when you
ran create-application.py to start working on your application.

The issue is that there is no log appender referenced (and therefore none
initialized) if you don't explicitly mention one.  In your Application.js
file, you need to make reference to one or more appenders.  The new
create-application.py generates this near the top of main():

      // Enable logging in debug variant
      if (qx.core.Variant.isSet("qx.debug", "on"))
      {
        // support native logging capabilities, e.g. Firebug for Firefox
        qx.log.appender.Native;
        // support additional cross-browser console. Press F7 to toggle
visibility
        qx.log.appender.Console;
      }

Note that all it does is mention the classes.  There's no instance of the
class required.  It looks funny, but what's there is all that's required.

If you don't have mention of qx.log.appender.* in your Application.js file
(or elsewhere in your application), the appenders won't be brought in by the
loader and your debug output will disappear into never never land.

Once you add the above code (I'm assuming that your Application.js does not
have it) then if you're running Firefox with Firebug you'll get output in
the Firebug console, and whether you're running that or not, you'll also get
output in a window that you can toggle appearance of by pressing F7.

Cheers,

Derrell
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to