[OpenLayers-Dev] Debugging OpenLayers: a script not minified?

christopher.schmidt at nokia.com christopher.schmidt at nokia.com
Mon Feb 7 11:30:33 EST 2011


On Feb 7, 2011, at 11:20 AM, ext Andrés Maneiro wrote:

> Hello,
> 
> I'm through the process of understanding how a WFS request is formed. I think I have a bug on my code and it will be useful to debug the process all along. So, I need to go through OL code step by step and understand what it does.
> 
> For that, I'm using the utilities chrome browser provides. But, the OpenLayers script is minified [1], so it's a mess to debug and understand. I've tried the OL code from svn and also the tarball of the stable release. Both seem to be minified.

What code in SVN do you think is minified?

http://svn.openlayers.org/trunk/openlayers/lib/OpenLayers.js is not.

Inside the lib/ directory in all OpenLayers releases is an OpenLayers.js
loader which loads all the uncompressed files for debugging (including the
latest stable release) in addition to the OpenLayers.js at the root.

-- Chris

> So, my question is: is there a version of OL not minified "for debugging"? How do you debug step-by-step OL code?
> 
> best,
> amaneiro
> 
> [1] http://www.crockford.com/javascript/jsmin.html
> 
> _______________________________________________
> Dev mailing list
> Dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-dev



More information about the Dev mailing list