On 07/06/2011 05:35 AM, philnz wrote:
> Hello all,
>
> The debug version of my app is deployed to a web server. I use:
>
> generate.py build -m OPTIMIZE:[]
>
> and then zip the "build" directory. Very nice.
>
> I am trying to enable the console and debug messages by setting qx.debug in
> the environment.
>
> I tried adding:
>
> window.qx = { $$environment : { "qx.debug": true } }
>
> to index.html before the app is loaded but the qx.debug variable is
> clobbered by a hard coded parameter in the loader:
>
> var envinfo ={...,"qx.debug":false,...};
> for (var k in envinfo) qx.$$environment[k] = envinfo[k];
>
> so I am guessing it needs to be resolved at build-time. Ideally it would be
> nice to have a command line switch on generate.py to override this and
> integrate with my own build system, but at this stage I am looking for any
> way to set qx.debug to true for a build release in qooxdoo 1.5.
>
> Being new to qooxdoo, I have probably just missed something simple... :-)

Indeed. In your config.json just set qx.debug to true in the 
"environment" key of the build job, like

   "build-script" : {
     "environment" : {"qx.debug" : true }
   }

T.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to