Reputation: 26177
I'm trying to debug my js code on my page that includes a jQuery file using Firebug (I'm new to jQuery..and Firebug kinda). However, Firebug is only showing me the 8k+ lines of jQuery code, and doesn't show my code anywhere. Where can I find my code? And is there a way to skip over certain external script files? I tried unchecking the file in the "filename" dropdown in the Script panel, but that doesn't do anything.
Thanks
Update: I just realized that when I include the external jQuery file, my inline js code, which is defined right after in <head>
, isn't even recognized/compiled. None of my event handlers are defined or anything ><
And when I include the jquery file after my inline js code, my inline code is compiled and there, but my whole form
is missing!! WTH is going on!?
Upvotes: 0
Views: 643
Reputation: 9067
if you have an inline piece of code it's easier to find in the 'HTML' tab of firebug.
just look for the <script>
tag you have put on the page.
Upvotes: 1
Reputation: 379
Under script tag you will find a list of .js files loaded for that particular page. just select it from the dropdown. The check you are talking about is for selecting a particular file from the dropdown.
Upvotes: 0
Reputation: 207557
You do not uncheck a file in it. The checkmark shows you what file is currently displayed in the console window.
Scroll down the list of files and find your JavaScript file and click on it. It will open up in the window.
Upvotes: 0