[Webkit-unassigned] [Bug 40336] New: [Feature Request] JavaScript API for setting breakpoints

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 8 14:45:39 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=40336

           Summary: [Feature Request] JavaScript API for setting
                    breakpoints
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hallettj at gmail.com


>From time a bug comes up that I can only reproduce in a production environment.  This leads to debugging code that is minified and that I cannot change.  In situations like this it would be really helpful to be able to programmatically set breakpoints.  For example setting a property on a function from the console to cause execution to pause when that function starts running would be great:

    > filter._onPreProcess.debug = true;

It would also be handy to be able to set the value of that property to a predicate function so that execution would only pause if the predicate returned `true`:

    > filter._onPreProcess.debug = function(/* gets arguments sent to _onPreProcess() */) { return !!arguments[1].match(/foo/); };

There are also cases where I can modify where I believe it would be useful to have other breakpoint API options.  When debugging Ruby code with the Ruby debugger I can place a call to a function called `debugger()` in my code to cause execution to pause on that line.  It would be nice to have a similar option in Webkit.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list