Aptana has a format function (Edit --> Format) that can make a minified file readable (works for all sorts of file types). The variable names are still shortened, but usually it's not too hard to figure out what's going on.
The formatter can sometimes fail (I tried it on the latest jquery and it said something about not being able to figure out the format), but most the time it does the trick. I'm sure other IDEs have this capability as well. - Joe On Jan 25, 7:42 am, Fran <[email protected]> wrote: > 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]
