In the beginning I started learning to program with C++,for that I used Viusal C++, I had a debugging mode in Visual C++ where I could look what values variable have on Run-Time.As JS code is executed in browser I have to consider my self what values variables have. I want to know if there is some debugger available for JS where I can see values changing o0n Run-Time. Because of not knowing about any such debugger I have to spend more time while trying to figure out logical error.
Asked
Active
Viewed 374 times
0
-
4Maybe Chrome devtools will help: https://developers.google.com/chrome-developer-tools/docs/javascript-debugging – ashatte Nov 04 '13 at 00:06
-
3Alternatively, there's [Firebug](https://getfirebug.com/) – Nov 04 '13 at 00:08
-
So, you haven't even tried to ask google for that? "how to debug javascript" provides tons of info. Next time - ask http://google.com **before** stackoverflow – zerkms Nov 04 '13 at 00:29
2 Answers
1
Inspect variables in IE - http://msdn.microsoft.com/en-us/library/dd565625(v=vs.85).aspx#_vars
Watch variables in Firefox - https://developer.mozilla.org/en-US/docs/Tools/Debugger#Watch_expressions
Watch variables in Chrome - https://developers.google.com/chrome-developer-tools/docs/tips-and-tricks?hl=en#favorite-expression

kavun
- 3,358
- 3
- 25
- 45
0
If you are looking for debugging just JavaScript by itself, check this question: JavaScript IDE/Compiler