Fabio, I love this. The issue here is that Firebug sometimes doesn't report errors, so you have to throw try/catch blocks around stuff. I had something similar to this in my toolchest a while ago but for whatever reason lost track of it. You should make a plugin for the forge out of it.
On Thu, Dec 3, 2009 at 5:19 AM, Daniel Lohse <[email protected]>wrote: > Wow, that is quite cool. Thanks! > > Daniel > > On 2009-12-03, at 3/December, 2:02 PM, Fábio M. Costa wrote: > > thats more correct: > > http://mooshell.net/Uqbba/1/ > > -- > Fábio Miranda Costa > Solucione Sistemas > Engenheiro de interfaces > > > 2009/12/3 Fábio M. Costa <[email protected]> > >> i dont think you could do this to all the function definitions (correct me >> if im wrong) but you could create a function at the Function prototype to do >> this. >> >> Something like: >> >> http://mooshell.net/Uqbba/ >> >> >> >> >> -- >> Fábio Miranda Costa >> Solucione Sistemas >> Engenheiro de interfaces >> >> >> >> On Thu, Dec 3, 2009 at 10:34 AM, noiv <[email protected]> wrote: >> >>> Hi, >>> >>> I often found this pattern in my functions: >>> >>> function doSomething(params){ >>> try { >>> // Do Something >>> } catch (e) {catchError ("doSomething", e, params) ;} >>> } >>> >>> catchError() simply pretty-prints the error message to the console. >>> >>> Is there a possibility to extend all user function definitions >>> automatically with this try/catch pattern? Or have I missed something >>> even more useful? >>> >>> --noiv >>> >>> >> > >
