Closed
Bug 791323
Opened 12 years ago
Closed 12 years ago
Need a mechanism to select a script programmatically in the debugger
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 20
People
(Reporter: Optimizer, Assigned: vporof)
References
Details
(Whiteboard: [fixed-in-fx-team])
Attachments
(1 file)
4.60 KB,
patch
|
rcampbell
:
review+
|
Details | Diff | Splinter Review |
By using JS, just after loading the Debugger, it starts loading the first script in the list (alphabetically sorted), then I change the script to the desired script, it gets changed, but as soon as the previously started loading of the first script finishes, the source-editor is filled with text of that script, without even changing the name of the script in the menu list. And after that the Debugger behaves as the content loaded in the source editor belongs to the second script that I switched to. Here is the code that use to do the same: function openScript(aSourceURL) { let scriptsView = dbg.DebuggerView.Scripts; let scriptLocations = scriptsView.scriptLocations; if (scriptLocations.indexOf(aSourceURL) === -1) { return; } scriptsView.selectScript(aSourceURL); } let dbg = null, debuggerOpenedByThis = false; if (this.chromeWindow.DebuggerUI.getDebugger() == null) { this.chromeWindow.DebuggerUI.toggleDebugger(); dbg = this.chromeWindow.DebuggerUI.getDebugger().contentWindow; let self = this; dbg.addEventListener("Debugger:Connecting", function onConnecting() { dbg.removeEventListener("Debugger:Connecting", onConnecting); dbg.addEventListener("Debugger:AfterScriptsAdded", function onScriptsAdded() { dbg.removeEventListener("Debugger:AfterScriptsAdded", onScriptsAdded); openScript.call(self, <url of script that is not the first script in the menu list>); }); }); }
Comment 1•12 years ago
|
||
ignoring the above example, we need a way to select a script programmatically in the debugger. The above example illustrates why we need this.
Summary: Debugger loads the wrong script's text into the source-editor. → Need a mechanism to select a script programmatically in the debugger
Comment 2•12 years ago
|
||
we should implement this following Nick's work in bug 755661.
Depends on: 755661
Reporter | ||
Comment 3•12 years ago
|
||
This bug blocks 766001 very badly. I already have a simple solution for this bug to make bug 766001 possible. Should I stop on it then ?
Updated•12 years ago
|
Priority: -- → P2
Assignee | ||
Comment 4•12 years ago
|
||
FILTER ON PUMPKINS.
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Assignee | ||
Comment 5•12 years ago
|
||
Attachment #685124 -
Flags: review?(rcampbell)
Comment 6•12 years ago
|
||
Comment on attachment 685124 [details] [diff] [review] v1 Review of attachment 685124 [details] [diff] [review]: ----------------------------------------------------------------- yup.
Attachment #685124 -
Flags: review?(rcampbell) → review+
Assignee | ||
Updated•12 years ago
|
Whiteboard: [land-in-fx-team]
Assignee | ||
Comment 7•12 years ago
|
||
Green: https://tbpl.mozilla.org/?tree=Try&rev=b5618e8c14c1
Assignee | ||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/be8f10c9dfa4
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Assignee | ||
Comment 9•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/be8f10c9dfa4
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•