Tuesday, August 14, 2012

EXTJS 4 debugging

While I was using EXTjs 4.1, there were a couple of changes from 4.0.

I realized that in-case we have any logic in the views and we need to debug it, You will try using a break-point in the developer tools. And when you refresh the page to start debugging the break-point is lost. And this continues and then you cannot debug the app. The code in the controller may be by chance debuggable.

After searching a lot I found that we need to disabled the Loader caching. This is how you would do it your app.js


Ext.Loader.setConfig({
enabled: true,
disableCaching: false
});

Now you shall be able to debug and the break points will not be lost.
Huh!!.. hope this helps some one.

No comments:

Post a Comment