Closed Bug 687093 Opened 13 years ago Closed 12 years ago

Clicking on a stack frame in the debugger should put the caret in the proper source line

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 13

People

(Reporter: past, Assigned: past)

References

Details

Attachments

(2 files, 4 obsolete files)

When a user clicks on a stack frame, the source editor pane should scroll the corresponding line into view (preferably at the top of the pane) and put the caret there. Highlighting the line would be nice, too.
Depends on: 687160
Component: Developer Tools → Developer Tools: Debugger
QA Contact: developer.tools → developer.tools.debugger
Assignee: nobody → past
Status: NEW → ASSIGNED
Priority: -- → P2
Depends on: 706506
Attached patch WIP (obsolete) — Splinter Review
Clicking on a stack frame now works as expected, but when entering the paused state the right script and line are not automatically selected. This cannot be fixed until bug 706506 is taken care of.
Attached patch WIP 2 (obsolete) — Splinter Review
This works now (on top of bug 706506), but the test still has a couple of failures that I need to get to the bottom of.
Attachment #592126 - Attachment is obsolete: true
Attached patch Working patch (obsolete) — Splinter Review
Fixed the test as well as a few others that this patch broke, and added an extra fix for a flicker during onScripts.
Attachment #592834 - Attachment is obsolete: true
Attachment #593134 - Flags: review?(mihai.sucan)
Comment on attachment 593134 [details] [diff] [review]
Working patch

Review of attachment 593134 [details] [diff] [review]:
-----------------------------------------------------------------

Patch looks good!

::: browser/devtools/debugger/test/browser_dbg_select-line.js
@@ +69,5 @@
> +        });
> +      });
> +
> +      // Click the oldest stack frame.
> +      EventUtils.sendMouseEvent({ type: "click" },

Can you use synthesizeMouse() here?
Attachment #593134 - Flags: review?(mihai.sucan) → review+
Attached patch Working patch v2 (obsolete) — Splinter Review
(In reply to Mihai Sucan [:msucan] from comment #4)
> Comment on attachment 593134 [details] [diff] [review]
> Working patch
> 
> Review of attachment 593134 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Patch looks good!
> 
> ::: browser/devtools/debugger/test/browser_dbg_select-line.js
> @@ +69,5 @@
> > +        });
> > +      });
> > +
> > +      // Click the oldest stack frame.
> > +      EventUtils.sendMouseEvent({ type: "click" },
> 
> Can you use synthesizeMouse() here?

Absolutely, fixed.

(carrying over the r+)
Attachment #593134 - Attachment is obsolete: true
Attachment #593427 - Flags: review+
Test fix required after the latest merge and a small hunk from the patch in bug 711164, since I reordered them. This hunk has extensive tests in that patch, but I wanted to get this in and not wait for stepping support to be finished.
Attachment #593427 - Attachment is obsolete: true
Attachment #596060 - Flags: review?(dcamp)
Changes since your last review.
Comment on attachment 596060 [details] [diff] [review]
[in-fx-team] Working patch v3

Sorry, I got confused. Mihai has been reviewing this.
Attachment #596060 - Flags: review?(dcamp) → review?(mihai.sucan)
Comment on attachment 596060 [details] [diff] [review]
[in-fx-team] Working patch v3

Looks good!
Attachment #596060 - Flags: review?(mihai.sucan) → review+
Whiteboard: [land-in-fx-team]
Attachment #596060 - Attachment description: Working patch v3 → [in-fx-team] Working patch v3
https://hg.mozilla.org/integration/fx-team/rev/c17bad2abafe
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/c17bad2abafe
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 13
Depends on: 726609
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: