开发者

How do I find particular Javascript within my code

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:

How do I find particular Javascript within my code

Search scripts:

How do I find particular Javascript within my code


I would use a text editor with a Find In Files option like Notepad++. Most IDEs would also provide this search option.

How do I find particular Javascript within my code


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜