[Webkit-unassigned] [Bug 162846] New: Web Inspector: Improve the experience of stepping in and out of getters/setters

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 1 16:28:56 PDT 2016


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

            Bug ID: 162846
           Summary: Web Inspector: Improve the experience of stepping in
                    and out of getters/setters
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: joepeck at webkit.org
                CC: bburg at apple.com, joepeck at webkit.org,
                    mattbaker at apple.com, nvasilyev at apple.com,
                    timothy at apple.com, webkit-bug-importer at group.apple.com

Summary:
Improve the experience of stepping in and out of getters/setters

Test:
<script>
var obj = {
    get foo() {
        return {
            get bar() {
                return 100;
            }
        }
    }
}

debugger;
var value = obj.foo.bar;
</script>

Steps to Reproduce:
1. Load test page
2. Reload to pause on debugger statement
3. Step through the foo and bar getters
  => Not clear how we are advancing through the program

Notes:
- Chrome and Firefox are also very unclear
- Edge takes you back out to `obj.foo.bar` when leaving foo and before entering bar, however when it does it is still unclear where in the line you are unless you know.
- I think the best experience would probably involve a pause when leaving a getter so the user can get context for what just happened.
- Getters are like function calls, but non-obvious so they need a bit of context
- Should see what Xcode/lldb do for stepping through getters/setters

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20161001/ec657f50/attachment.html>


More information about the webkit-unassigned mailing list