[TxMt] Re: HTML output window: How to access to JavaScript Errors

Thomas Aylott / subtleGradient oblivious at subtlegradient.com
Thu Sep 25 05:16:57 UTC 2008


You could wrap the thing in a try...catch and on catch tell  
TextMate.system to write to a log file.

Actually a great idea for the javascript tools bundle script runner.

--
Thomas Aylott / SubtleGradient (from iPhone)


On Sep 23, 2008, at 4:26 PM, Hans-Jörg Bibiko <bibiko at eva.mpg.de>  
wrote:

> Hi,
>
> if I have an HTML page (TM's HTML output window) with embedded
> JavaScript and my JavaScript is not correct I can press the right
> mouse button and invoke 'Inspect Element' to look at the JavaScript
> error(s). Fine.
>
> But is there a way to access the(se) error(s) from outside, I mean by
> a script?
>
> If not, would it be possible to redirect the(se) error(s) to a log  
> file?
>
> Many thanks in advance,
>
> --Hans
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list