Re: [webkit-dev] How to catch JS exceptions/log messages from a WebView?

2007-12-23 Thread Timothy Hatcher

The Web Inspector also shows these for any WebView.

On Dec 22, 2007, at 8:14 AM, Todd Ditchendorf wrote:

For example, I want to implement something similar to the JavaScript  
Console in the Safari debug menu.


Also, how do you capture statements sent to console.log(),  
console.warn() and console.error() within a WebView?


— Timothy Hatcher


___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] How to catch JS exceptions/log messages from a WebView?

2007-12-22 Thread Todd Ditchendorf
In a Cocoa app which embeds a WebView, what is the best way to catch  
all JS exceptions from the WebView which are thrown and are not caught  
within JS itself?


For example, I want to implement something similar to the JavaScript  
Console in the Safari debug menu.


Also, how do you capture statements sent to console.log(),  
console.warn() and console.error() within a WebView?


thanks!

todd ditchendorf
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev