Debugging JavaScript with firebug

Hey folks,

I was curious if anyone might know of a way to set a dynamic breakpoint or figure out a way to narrow down what in my javascript is changing the innerText (or textContent for FF) for a specific anchor element. Setting random break points isn't efficient when dealing with 2,000 lines of javascript and I'm not entirely sure what particular statement is changing the text. I'd like to be able to narrow it down. Is there a way I can use some clever Watch point in Firebug or perhaps adding an expression to break points somewhere?

Thanks.
LVL 3
stevefNYCAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

b0lsc0ttIT ManagerCommented:
stevefNYC,

I don't know of a way to make "dynamic" break points but in cases like this I set one and then use the F11 key to step into it.  If you really have no idea of where the problem is then I will usually use Alerts (or something like them) to narrow it down for me.  With a few properly placed ones it can usually narrow the problem down to a much smaller block.

Let me know if you have any questions or need more information.

b0lsc0tt
0
dotoreeCommented:
I think you can use the console.trace()  of the firebug.

take a look http://www.getfirebug.com/logging.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Browsers

From novice to tech pro — start learning today.