PDA

View Full Version : How do I debug ExtJS 4 app without building every time?



xjscrafter
11 Jun 2014, 6:28 PM
We have an ExtJS 4.2.1 app and use sencha cmd to build.

But during development I don't want to build every time I change something in the code.

But the index HTML file has bootstrap code in it and the locations of images, other js libraries, etc. is different pre and post build.

Also, even the "testing" concatenated code it too long to set break points in firebug.

So how can I run the code and set break points without building every time.

Typically we just run the code files themselves, but as I said, the location in the source tree, and the index.html file has bootstrap code, so that won't work.

Phil Guerrant
12 Jun 2014, 5:42 AM
just open the index.html page from your application's root directory in a browser (not from the build directory). It should run in "dev mode" with all JS classes dynamically loaded as individual files.