Know the line number of an error

9 views
Skip to first unread message

bblanco

unread,
Aug 17, 2007, 6:18:09 AM8/17/07
to Firebug
Hello,

Firstly, sorry for my bad english.

We have a JS file where we catch an exception. We need to know how
Firebug knows the number of error line, to show it in the console
using a function that we have create. Thanks!

John J Barton

unread,
Aug 18, 2007, 1:17:29 AM8/18/07
to Firebug
Sometimes the error line number is in the error message. To look just
print out the exception properties:
catch(exc) {
for ( p in exc)
...output p and exc[p]
Firebug also grabs the call stack by setting a debugger callback
errorHook.

Do you know about Firebug->Script->BreakOnError? If you set this you
will stop on the error.

Reply all
Reply to author
Forward
0 new messages