Closed Bug 1532295 Opened 5 years ago Closed 5 years ago

Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source

Categories

(DevTools :: Console, enhancement, P2)

enhancement

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: ochameau, Assigned: pong7219, Mentored)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file, 2 obsolete files)

The code over here:
https://searchfox.org/mozilla-central/rev/92d11a33250a8e368c8ca3e962e15ca67117f765/devtools/client/shared/components/reps/reps.js#6844-6848

        props.onViewSourceInDebugger({
          url: filename,
          line: lineNumber,
          column: columnNumber
        });

Pass a column attribute, but that isn't implemented in onViewSourceInDebugger:
https://searchfox.org/mozilla-central/rev/92d11a33250a8e368c8ca3e962e15ca67117f765/devtools/client/webconsole/webconsole-wrapper.js#261-270

          onViewSourceInDebugger: frame => {
            this.toolbox.viewSourceInDebugger(
              frame.url, frame.line, frame.sourceId
            ).then(() => {
              this.telemetry.recordEvent(
                "jump_to_source", "webconsole",
                null, { "session_id": this.toolbox.sessionId }
              );
              this.webConsoleUI.emit("source-in-debugger-opened");
            });

I'll make this bug depend on bug 1531826 as it is already in process of modifying toolbox's viewSourceInDebugger function.

Mentor: nchevobbe
Keywords: good-first-bug
Summary: Reps doesn't pass column number to debugger panel when opening a source → Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source
Priority: -- → P2

Hi everyone,
Not sure if this is already being done, but I'm available to be assigned this issue :)

Thanks

Hello Mellina, thanks for offering help!
I'm assigning the bug to you.

If you don't have setup the work environment yet, you can have a look at http://docs.firefox-dev.tools/getting-started/ . Make sure to choose "Artifact builds" when asked to, as it's much faster to work with those.

Don't hesitate to ask any question you might have, here or on Slack :)

Hi Nicolas,

Thanks :) I'll start working on it today and will have updates later.

Pass on column from props.onViewSourceInDebugger (///devtools/client/shared/components/reps/reps.js:6844//) to
//devtools/client/webconsole/webconsole-wrapper.js:267// as frame.column

Hi everyone,

I don't know who is reviewing, so I have tagged the reporter and Nicolas.

I tried testing (mochitest and console.log) and none worked, so I'm not sure if that was successful. Please let me know if that was not what was requested.

Thanks!

Flags: needinfo?(nchevobbe)
Assignee: nobody → pong7219
Status: NEW → ASSIGNED
Flags: needinfo?(nchevobbe)
Attached file Bug 1532295 - Solve rebasing conflicts (obsolete) —

Depends on D23364

Hi Nicolas,
I have sent a review, but in different Phabricator links :/ sorry about that.

Flags: needinfo?(nchevobbe)
Attachment #9050731 - Attachment is obsolete: true
Attachment #9050730 - Attachment is obsolete: true

(clearing needinfo)

Flags: needinfo?(nchevobbe)
Attachment #9048956 - Attachment description: Bug 1532295 - Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source r=ochameau → Bug 1532295 - Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source. r=nchevobbe.
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/312a73dcfb90
Webconsole's onViewSourceInDebugger doesn't pass column number to debugger panel when opening a source. .
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: