Capture javascript errors
I'd like to attach a debugger to a TWebBrowser control. I'm currently using Delphi.
The functionality I'm looking for is to capture javascript errors as well as being able to pause script execution and step through it (or similar).
Having using this control for some time, I can't for the life of me figure this one out. Problem is all this dynamic API is kind of a black box and difficult to find what I need.
开发者_开发问答When it comes to JS errors, I'm only able to capture the notorious Exception EOleException 80020101.
If you know anything about this, don't hesitate to put it forward (even if in VB or .NET)!
Note: Microsoft Script Debugger does this job perfectly, anyone knows how they did it?
I've forgot all about this question, the answer's here: WebBrowser (MSIE) - Capture JS Errors using Exec of IOleCommandTarget
精彩评论