Can I debugge Javascript code to see which values take my variables?

If so, How can I do it.

thanks so much