That's not possible, I forgot to mention that the library is minified and compressed so it's hard to do that... but I found the solution thanks to Matt that suggested me using Chrome dev tool which has an option to pause on all exceptions... Even though the code is a bit obfuscated but I could figure out what was causing it. I wasn't aware of that functionality in Chrome Developer tool.

Thanks

On 25/01/11 03:54, Angus Croll wrote:
Since you have the library source why not temporarily remove the try/
catch or just add a breakpoint or console.log in the catch block
(assuming source is uncompressed)?

On Jan 24, 4:06 am, Fran<[email protected]>  wrote:
Hi guys,

I was wondering, is there any way I can find out about the latest error
even though this one was caught by a try/catch block, which I don't have
control over ?, for instance:

/***********************/
// this try/catch block is somewhere in a library I'm using
try {
      throw 'something causing and error';

} catch (e) {}

// ...
// can I know at this point about "e" ?
// ...

/***********************/

The problem is that an error is being caught somewhere in the code
(which is concealing the error), causing unexpected behavior but I don't
know what is causing this.

I hope I've explained myself properly.

Thanks in advance

--
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to