0

Let's say I am visiting CNN, and they use javascript as we know. They initialize some variables and change it during my visit. How can I watch what values these variables are getting?

1 Answer 1

4

Install firebug and use the script tab. You can set breakpoints, step through code and more.

If you are not using FF, you can use firebuglite.


IE8 and above have similar built in dev tools easily accessible by pressing F12.

Chrome and Safari have such built in tools too, and so does the latest version of Opera.

Sign up to request clarification or add additional context in comments.

2 Comments

If he's using Safari or Chrome, they have built-in debuggers.
you might find it incredulous, but i have been using chrome inspector for 3 motnhs without noticing the 'call stack' on the right hand side. Wow Edit: a second wow, it lists all variables

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.