tags:

views:

503

answers:

4

Hi,

I am starting out with Firebug.

I have a JS file that has some JQuery in it.

how do I debug that code when the HTML page rendered does not have any javascript just ref to my file.

thanks Malcolm

+3  A: 

If you go to the script tab there'll be a little drop down box that will you let you select any scripts linked to in the page. Won't help you much if they're minified though...

CurtainDog
+2  A: 

Open Firebug. Click on "Script" then choose your external JS-File from the dropdown menu.

Benedikt Eger
I did no scripts there yet I have a few linked, help. Any chance you teaching me how to use it?????
Malcolm
I think this new version is buggy, I am going back to older version
Malcolm
How did you link the JavaScript-files from the HTML-page? Can you post some code?
Benedikt Eger
you need to enable the "script" by going to "Net" section in firebug
Vikram
Ok I discovered that my path to the JS file was wrong and now fixed it and Firebug sees it Net tab. BUT the Script menu still does not have any script file????
Malcolm
+2  A: 

You can add "debugger;" string before the line which you want to debug.

This will invoke Firebug's JS debugger.

Kirtan
A: 
Alex
Where do you mean "file list"?? This is set a breakpoint in a js file right.
Malcolm
Sorry I didn't really explain it right in my first response. I've made it more concise now.
Alex
I still dont know where this "file list" is??? You mean "Net Tab"??
Malcolm