X
Tap here to go to the mobile version of the site.

Support Forum

How do I find what the Firefox debugger's exception refers to and on which line number?

Posted

I am using the debugger in Firefox 25.0.1 to debug a web site I am building. I don't know how to learn what the exception is when the debugger throws one. I'd like to know what the error is and where it occurred.

Thank you, Baruch

I am using the debugger in Firefox 25.0.1 to debug a web site I am building. I don't know how to learn what the exception is when the debugger throws one. I'd like to know what the error is and where it occurred. Thank you, Baruch

Additional System Details

Application

  • User Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MS-RTC LM 8; MATBJS)

More Information

patrickmc
  • Administrator
  • Moderator
35 solutions 224 answers

Hello 7thRay,

Thank you for contacting Mozilla Support. For questions and help with Firefox's Web Developer tools I would suggest taking a look at this page on MDN.

https://developer.mozilla.org/en-US/docs/Tools

Please let us know if this solves your issue.

Cheers, Patrick

Hello 7thRay, Thank you for contacting Mozilla Support. For questions and help with Firefox's Web Developer tools I would suggest taking a look at this page on MDN. https://developer.mozilla.org/en-US/docs/Tools Please let us know if this solves your issue. Cheers, Patrick

Question owner

Patrick, Thank you for responding. The link you provided is for the documentation on the Developer Tools. However, I could not find, anywhere in that documentation, how to understand the right-most panel in the debugger that appears when an exception is thrown. Please see the attached image.

Where does the actual exception error message get shown? Where does the file name and error line number get shown?

Thank you, Baruch

Patrick, Thank you for responding. The link you provided is for the documentation on the Developer Tools. However, I could not find, anywhere in that documentation, how to understand the right-most panel in the debugger that appears when an exception is thrown. Please see the attached image. Where does the actual exception error message get shown? Where does the file name and error line number get shown? Thank you, Baruch

Question owner

Happy New Year Patrick,

It's been a couple of weeks since I last wrote. Have you been able to come up with a more definitive answer to my original question?

Baruch

Happy New Year Patrick, It's been a couple of weeks since I last wrote. Have you been able to come up with a more definitive answer to my original question? Baruch
cor-el
  • Top 10 Contributor
  • Moderator
17467 solutions 157838 answers

For getting the best results in the Web Developer Tools you can consider to install the current Nightly build alongside of the current release via a custom install to get the latest version of the Debugger.

Note that the Nightly and Aurora builds get a daily update and can be unstable at times.

Make sure not to start Firefox after the installation has finished and use the Profile Manager to create a new (separate) profile for each Firefox version.

See:

You can use the -no-remote command line switch to open another Firefox instance with its own profile and run multiple Firefox instances simultaneously.

For getting the best results in the Web Developer Tools you can consider to install the current Nightly build alongside of the current release via a custom install to get the latest version of the Debugger. *http://nightly.mozilla.org/ *http://www.mozilla.org/en-US/firefox/channel/ Note that the Nightly and Aurora builds get a daily update and can be unstable at times. Make sure not to start Firefox after the installation has finished and use the Profile Manager to create a new (separate) profile for each Firefox version. See: *http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows *http://kb.mozillazine.org/Shortcut_to_a_specific_profile You can use the -no-remote command line switch to open another Firefox instance with its own profile and run multiple Firefox instances simultaneously. *http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile *https://developer.mozilla.org/Mozilla/Multiple_Firefox_Profiles

Question owner

cor-el,

Thank you for writing. However, you, like Patrick, gave me a shot-gun approach to an answer, obviously not having even looked at the Firefox Debugger in action.

Will someone from this company please make an effort to answer my question posted on 12/16/13, and expanded upon and on the 18th of that month?

Thank you in advance for your help, Baruch

cor-el, Thank you for writing. However, you, like Patrick, gave me a shot-gun approach to an answer, obviously not having even looked at the Firefox Debugger in action. Will someone from this company please make an effort to answer my question posted on 12/16/13, and expanded upon and on the 18th of that month? Thank you in advance for your help, Baruch
cor-el
  • Top 10 Contributor
  • Moderator
17467 solutions 157838 answers

The current Nightly build has at least a setting to pause on exceptions and ignore caught exceptions.

I don't have code to check how it works with exceptions, so I can't confirm if it will work as you requested.

The current Nightly build has at least a setting to pause on exceptions and ignore caught exceptions. *https://developer.mozilla.org/en-US/docs/Tools/Debugger#Debugger_settings I don't have code to check how it works with exceptions, so I can't confirm if it will work as you requested.

Question owner

cor-el,

Gosh guys, I wouldn't expect you to solve this specific exception, of course you don't have the code.

Somewhere, in all of the Firefox domain, is there documentation on how to find out, in the Debugger, what the exception is, where does the actual exception error message get shown, and where does the file name and error line number that the exception occurred get shown?

I've got to use Chrome to do any debugging because that browser tells me this information. All I can find in the Firefox Debugger is that an exception was thrown.

Baruch

cor-el, Gosh guys, I wouldn't expect you to solve this specific exception, of course you don't have the code. Somewhere, in all of the Firefox domain, is there documentation on how to find out, in the Debugger, what the exception is, where does the actual exception error message get shown, and where does the file name and error line number that the exception occurred get shown? I've got to use Chrome to do any debugging because that browser tells me this information. All I can find in the Firefox Debugger is that an exception was thrown. Baruch
Dave Camp 0 solutions 2 answers

Exception shows up in the object scope (see attached image). We'll make sure to make this more clear in the documentation.

Hope that helps, -dave

Exception shows up in the object scope (see attached image). We'll make sure to make this more clear in the documentation. Hope that helps, -dave

Question owner

dave,

I appreciate your post. Did you see the image I attached to my post on 12/18? Your image basically duplicated mine. I know where the exception shows up, my image is supposed to indicate that.

I do not know, nor know where in the vast amount of information that the debugger provide, the following: 1) what is the exception? 2) where does it occur?

The image I'm attaching to this post, shows the Chrome Debugger in action. Please note that it provides the information I'm looking for, right up front.

Where does Firefox's Debugger provide the answers to the two questions above?

Baruch

dave, I appreciate your post. Did you see the image I attached to my post on 12/18? Your image basically duplicated mine. I know where the exception shows up, my image is supposed to indicate that. I do not know, nor know where in the vast amount of information that the debugger provide, the following: 1) what is the exception? 2) where does it occur? The image I'm attaching to this post, shows the Chrome Debugger in action. Please note that it provides the information I'm looking for, right up front. Where does Firefox's Debugger provide the answers to the two questions above? Baruch
Dave Camp 0 solutions 2 answers

Helpful Reply

I'm sorry, I totally did miss that screenshot!

I dug a bit deeper, and it looks like our exception line number support was indeed not working right until Firefox 27 (currently in beta). Sadly I don't have a good workaround for Firefox 26.

As cor-el pointed pointed out, we encourage developers to install our Aurora release, because it gets this sort of fix more quickly than the released version. Regardless, I apologize for the 26 release's confusing (wrong) behavior here.

Thanks, -dave

I'm sorry, I totally did miss that screenshot! I dug a bit deeper, and it looks like our exception line number support was indeed not working right until Firefox 27 (currently in beta). Sadly I don't have a good workaround for Firefox 26. As cor-el pointed pointed out, we encourage developers to install our Aurora release, because it gets this sort of fix more quickly than the released version. Regardless, I apologize for the 26 release's confusing (wrong) behavior here. Thanks, -dave

Question owner

Right on Dave! Finally, someone who actually looked into the issue. I thank you for that. If I understand you, the version of Firefox I'm using, 26.0, doesn't have the features built into the Debugger to provide the answers to my two questions, and that the next version, 27.0, will support that feature. Is this correct? I prefer to wait until a stable version is out; I've got enough bugs of my own to deal with, without having to contend with yours:) Thank you again for your attention to this. It is good to have a definitive answer. I will eagerly await the next version. Now, I'm working on the 3 browsers' take to the same layout code. Baruch

Right on Dave! Finally, someone who actually looked into the issue. I thank you for that. If I understand you, the version of Firefox I'm using, 26.0, doesn't have the features built into the Debugger to provide the answers to my two questions, and that the next version, 27.0, will support that feature. Is this correct? I prefer to wait until a stable version is out; I've got enough bugs of my own to deal with, without having to contend with yours:) Thank you again for your attention to this. It is good to have a definitive answer. I will eagerly await the next version. Now, I'm working on the 3 browsers' take to the same layout code. Baruch
jscher2000
  • Top 10 Contributor
8684 solutions 70998 answers

If you can't install Firefox 27, can you cross reference the Browser Console (Ctrl+Shift+j) to get the error description and line number? Or perhaps the two tools shows different things...

If you can't install Firefox 27, can you cross reference the Browser Console (Ctrl+Shift+j) to get the error description and line number? Or perhaps the two tools shows different things...