Question

I have jQuery code which works offline in Safari and Opera, but neither in Firefox 3.1 nor 3.08.

How can you use Firefox's JavaScript engine in offline debugging?

Was it helpful?

Solution

You can install SpiderMonkey and play around with that.

Or you can use Firebug which has a JavaScript debugger.

OTHER TIPS

Both Safari and Opera come with JavaScript debuggers. For Firefox, the weapon of choice is to install Firebug.

If you jQuery isn't running when using a localhost you probably need to make sure that your paths match up. Different browsers handle relative paths differently when running off the harddrive. I suggest using static paths. Also you probably want to checkout FireBug, which is a FireFox plug-in that allows you to inspect the JavaScript.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top