All Questions
14 questions
1
vote
1
answer
46
views
Javascript : How to log function parameter at exception time
I have a few function in my application in javascript
function( param1, param2 )
{
}
Sometimes I have caught exception and sometimes uncaught exception
My question is that: Is it possible to log out ...
16
votes
3
answers
13k
views
How to debug "uncaught exception: undefined (unknown)" in Firefox
I have this line come up in the console, only in Firefox, from my JavaScript application I'm developing:
It seems relatively harmless, but I'm curious if there's any way to deduce its origin, because ...
0
votes
1
answer
38
views
How to see the exception message when 'Pause on Exceptions' is turned on in Chrome?
When I turn on Pause on Exceptions in Chrome, it correctly pauses when a JavaScript error pops up, but I don't see the exception message itself.
Is there any way to see the message before having to ...
4
votes
1
answer
622
views
Where is "pause on exceptions" in Firefox 47?
The documentation for Firefox advertises "Pause on Execptions" as a debugger option, but this appears to be missing form the Settings panel in Firefox 47. Where can I find it now?
EDIT: Here is my ...
0
votes
1
answer
91
views
How to do elegant exception handling while retaining JavaScript debugger capabitilities
You know JavaScript can basically throw any object or even primitive as an exception:
throw 1;
throw { text: "hello" }
Sadly, debuggers like Firefox will log exceptions to console including a link to ...
1
vote
0
answers
110
views
Break on error, but not on these specific lines?
I hope i am not alone in noticing that various versions of jQuery tend to have strange non-showstopper errors that get thrown but which are caught, and yet this tends to set off the debugger on Chrome ...
40
votes
3
answers
7k
views
How can I get the stack trace for a JavaScript exception in IE 8?
When a JavaScript exception is thrown in IE 8, how can I see its stack trace?
For example, the following code from jQuery catches an exception and rethrows it. Debugging in Visual Studio (2012), ...
0
votes
2
answers
796
views
js exception position
For the JavaScript code like this:
try {
MyJob.process();
} catch(e) {
console.log("Exception occur!");
}
I run the code in Chrome or FireFox, When the exception happens, the line number of "...
1
vote
1
answer
759
views
How to print full backtrace for JavaScript exception?
When an exception is thrown in my Node.js app, the stack trace printed is limited to a depth of 10. Unfortunately, sometimes this is not deep enough to find the source of the exception. Is there a way ...
2
votes
1
answer
540
views
Is there a way to get line numbers or stack traces from an Error object in Internet Explorer?
In order to ease debugging some tricky async Javascript code that is misbehaving in Internet Explorer, I want to know if it is possible to, given an Error object, get useful information about its ...
3
votes
1
answer
174
views
IE8 developer tools debugger gives wrong exception information
Check out this jsfiddle:
http://jsfiddle.net/yxJey/6/
When run in FF with firebug you get the correct exception information.
When run in IE8 with developer tools the exception information is ...
9
votes
1
answer
10k
views
How come node.js doesn't catch my errors?
var api_friends_helper = require('./helper.js');
try{
api_friends_helper.do_stuff(function(result){
console.log('success');
};
}catch(err){
console.log('caught error'); //this ...
21
votes
4
answers
8k
views
Any way to stop Javascript from failing silently?
One thing that is driving me nuts is how Javascript fails silently in many different situations.
(removed example because it confuses the point of my question)
Many times I have come across an error ...
7
votes
3
answers
6k
views
Strategies to JavaScript console.log/trace, etc
I am writing a rather large JavaScript software. I need to trace calls, log events, debug actions, while maintain performance and portability across browsers.
Webkit and Firebug both offer console ...