View Full Version : [CLOSED] Ext.log does not work in generated app

1 Nov 2012, 7:29 AM
Sencha Cmd v3.0.0.230
Ext JS 4.1.2a

If you create a new app with sencha generate app, Ext.log will not work. Here is my app.js:

controllers: ["Main"],

views: ["Main"],

name: 'MyApp',

autoCreateViewport: true,

launch: function() {
Ext.log('ExtJS version: ' + Ext.getVersion('extjs'));

Now if I sencha ant build and access the app that way, it works, even if I specify production (sencha app production build), which is the opposite of what I would expect.

1 Nov 2012, 2:35 PM
There is a bug related to debug code not being compiled out in production builds that has been fixed just not yet released, so I expect that is part of the answer.

On the "does not work" part, I suspect you are using a framework bootstrap w/o debug code. Can you try ext-dev.js or ext-all-dev.js in your markup file?

1 Nov 2012, 5:09 PM
Ahh - right - the generate app command includes ext-debug.js and not ext-dev.js - I didn't catch that.

Thanks, Don.