The problem is that I have a huge Javascript code, it's broken down into many 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.
PS 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:
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.
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.