user1080381
user1080381

Reputation: 1786

How to debug ExtJS 4 code with firebug (in Firefox)

I've been trying to debug javascript (namely ExtJS 4.0.7) code with firebug (in Firefox browser), but when I set breakpoints and refresh the page, breakpoints disappear and no debugging happens.

What am I missing?

EDIT :

I am using Firefox 19.0.2, Windows 7, Firebug 1.11.2.

Breakpoints do not work in controller .js files.

Upvotes: 2

Views: 2600

Answers (2)

Jorge
Jorge

Reputation: 11

You could also use the debugger statement in your code to stop the execution in that spot.

http://msdn.microsoft.com/en-us/library/ie/0bwt76sk(v=vs.94).aspx

Upvotes: 1

dherbolt
dherbolt

Reputation: 256

You have probabli enabled ExtJs feature to prevent caching of js files. Look for disableCache config option in ExtJs docs. If it is set to true, ExtJs adds timestamp as param to each loaded file (you ca see ?_dc=123456789 in Firebug Net panel. File is always new and firebug is not able to set breakpoints after reload.

Upvotes: 4

Related Questions