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" : {}
}
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)?
Thanks,
Derrell
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself;
WebMatrix provides all the features you need to develop and
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel