[Webkit-unassigned] [Bug 9686] [Drosera] Need the ability to break into Drosera on Javascript exceptions

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed Jul 12 15:58:34 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9686


opendarwin.org at bdash.net.nz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |opendarwin.org at bdash.net.nz




------- Comment #3 from opendarwin.org at bdash.net.nz  2006-07-12 15:58 PDT -------
Darin suggested that I may be able to achieve the same end result without
implementing the exception/exceptionWasRaised method.  The WebScriptCallFrame
passed to webView:willExecuteStatement:sourceId:line:forWebFrame: and
webView:willLeaveCallFrame:sourceId:line:forWebFrame: knows if an exception has
been raised, and this information can be used to determine when to pause the
debugger.  The problem is that this will break at the next statement that
executes after the exception is raised, or while exiting the current call
frame.  In the case of an exception outside of the body of a function, neither
of these conditions occurs.  The end result is that an exception outside of the
body of a function is not trapped.  A secondary issue is that due to the way
Drosera tracks stack frames, the JS code that controls pausing does not have
access to the exception object and thus cannot retrieve the line number where
the exception was raised.

This approach seems better due to it limiting the changes required to Drosera,
but it's not clear to me how to work around the limitations.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list