How do I search through local variables in Google Chrome Console?

I set a breakpoint within a function. Now, I want to search through the names of local variables for one named foo.

How do I do that?

2

2 Answers

Go to the scripts section, pause, and refresh. Then look in the scope variables section.

"Waldo" should do the trick for you:

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like