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 anythi开发者_如何学Cng.
ThanksUpdate: 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 ><
form
is missing!! WTH is going on!?Have you tried clicking the following button?
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.
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.
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.
精彩评论