The problem is that I have a huge Javascript code, it's broken down into ma开发者_JAVA技巧ny files.
And I can't seem to find where a particular javascript code is .How would you go about finding if you were in my place?
I have the firebug lite installed but no clue how to use it. Thank you.
P.S. I'm not able to comment on SO for some reason. Sorry.
Check out this link, specifically these headlines:
Find scripts easily
Many web applications are comprised of quite a number of files, and finding the one you want to debug can be a chore. Firebug's script file chooser sorts and organizes files into very clean list that will help you find any file in a snap.
Go directly to line 108, do not pass go
Often times you want to jump directly to a specific line of your script. Doing this couldn't be easier, just type the line number into the quick search box, preceded by the pound sign, as seen in the screen shot on the right.
Find scripts:
Search scripts:I would use a text editor with a Find In Files option like Notepad++. Most IDEs would also provide this search option.
there's always: grep -r 'function myHardtoFindFunction(' src/
on a unix system or another system with GNU utilities.
you can search for function names in the firebug search box, which will also search across multiple js files
just open firebug and on the right hand side should be a searchbox. there are even check boxes for searching multiple files, case insensitivity and the use of regex if you feel ambitious.
精彩评论