The only thing I know how javascript uses alert (). is there any other way to help javascript debugging?

The only thing I know how javascript uses alert (). is there any other way to help javascript debugging?

+5
source share
7 answers

Using Firebug and web development tools in other browsers, you can use commands such as

console.log(myVar);

observe variables, not more destructive alert. With consoles in most development tools, you can also run arbitrary Javascript snippets without changing the actual code, which can help a lot with Javascript debugging. Oh, and the break on error function also helps.


When you open Firebug, you see something like this. Go to the console tab and enable it:

alt text

>>>. - $('body').css('-moz-transform', 'rotate(10deg)'): D

+6
+3

:

/ javascript.

+2

- ( - , , ?), YUI Logger , , : http://developer.yahoo.com/yui/logger/

+1

Firebug - Javascript.
, , Opera Dragonfly, .

Opera - ( ), , . .

+1

Safari Chrome

+1
+1

All Articles