How to debug Javascript error?

后端 未结 6 1889
囚心锁ツ
囚心锁ツ 2021-01-06 03:07

How to Debug java Script Error Using Firebug?

Duplicate

How can I set breakpoints in an external JS script in Firebug

6条回答
  •  时光说笑
    2021-01-06 03:11

    Debug using FireBug.

    Just check the line on which the error is occuring, then, just before that line, write a "debugger" call.

    debugger; //Will invoke FireBug's debugger.
    var err = abcs; //Line containing error
    

提交回复
热议问题