开发者

Firebug and jQuery

开发者 https://www.devze.com 2023-03-08 10:39 出处:网络
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 does

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.

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!?


Have you tried clicking the following button?

Firebug and jQuery


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消