> I have a need to be debugging with the build version of my app. I've
> turned
> off all optimization, but still, multiple statements get merged onto
> single
> lines, so the code ends up looking like this:
>
>
> if(value){var base=this._resolveImageUrl(value);
> var split=/(.*)(\.[a-z]+)$/.exec(base);
> var prefix=split[1];
> var ext=split[2];
> var
> images=this.__images={tl:prefix+"-tl"+ext,t:prefix+"-t"+ext,tr:prefix+"-tr"+ext,bl:prefix+"-bl"+ext,b:prefix+"-b"+ext,br:prefix+"-br"+ext,l:prefix+"-l"+ext,c:prefix+"-c"+ext,r:prefix+"-r"+ext};
> this.__edges=this._computeEdgeSizes(images);
> }},_resolveImageUrl:function(image){return
> qx.util.AliasManager.getInstance().resolve(image);
> },_computeEdgeSizes:function(images){var
> ResourceManager=qx.util.ResourceManager.getInstance();
> return
> {top:ResourceManager.getImageHeight(images.t),bottom:ResourceManager.getImageHeight(images.b),left:ResourceManager.getImageWidth(images.l),right:ResourceManager.getImageWidth(images.r)};
> }},destruct:function(){this.__markup=this.__images=this.__edges=null;
> }});
>
>
> That makes it extremely difficult to set a breakpoint at a particular
> statement.
>
> I tried adding adding a pretty-print statement to my build-script job:
>
>     "build-script" :
>     {
>       "variants" :
>       {
>         "=qx.debug" : [ "on" ]
>       },
>       "pretty-print" : {}

Don't do that! "pretty-print" only operates on source/class/* files, and
has no influence whatsoever on the generated build script.

>     }
>
> This runs the pretty-printer (although I'm not sure where it left the
> output), but does not affect the build/script/myapp.js file which is the
> one
> I want somewhat prettier than it is.
>
> Is there a simple option to have only a single statement per line, or to
> not
> do any reformatting of the original source files (other than, optionally,
> removing comments)?

Not currently. There is just the little compile-options/code/format key,
which you have already enabled, otherwise the whole code would be on a
single line.

But if you can wait another 2 days, 1.4 will bring you a "source-hybrid"
build that will concat source files into common .js files. - What do you
want to achieve anyway? What of "build" is it that you need?

T.



------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to