Closed
Bug 1865005
Opened 1 year ago
Closed 1 year ago
Use 1-based column number in tracer
Categories
(DevTools :: Debugger, task)
DevTools
Debugger
Tracking
(firefox122 fixed)
RESOLVED
FIXED
122 Branch
Tracking | Status | |
---|---|---|
firefox122 | --- | fixed |
People
(Reporter: arai, Assigned: arai)
Details
Attachments
(1 file)
derived from https://phabricator.services.mozilla.com/D193270
tracer has been using 0-based column number for URL, which is received by DevToolsStartup.sys.mjs.
bug 1862693 switches the Debugger API (script.getOffsetMetadata
here) from 0-based to 1-based, while letting tracer keep using 0-based.
this bug is to switch the tracer and the consumer in DevToolsStartup.sys.mjs to use 1-based column number.
const { lineNumber, columnNumber } = script.getOffsetMetadata(
frame.offset
);
...
const href = `${script.source.url}:${lineNumber}:${columnNumber}`;
...
const urlLink = `\x1B]8;;${href}\x1B\\${href}\x1B]8;;\x1B\\`;
...
const message = `${padding}[${
frame.implementation
}]—> ${urlLink} - ${formatDisplayName(frame)}`;
...
dump(this.prefix + message + "\n");
checkForDebuggerLink(cmdLine) {
...
const urlParam = cmdLine.getArgument(urlFlagIdx + 1);
...
let match = urlParam.match(/^(?<url>\w+:.+):(?<line>\d+):(?<column>\d+)$/);
...
match = urlParam.match(/^(?<url>\w+:.+):(?<line>\d+)?$/);
...
const { url, line, column } = match.groups;
...
parseInt(column || 0, 10),
Comment 1•1 year ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Component: General → Debugger
Assignee | ||
Comment 2•1 year ago
|
||
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/a4f3e7625abf
Use 1-based column number in tracer and DevToolsStartup command line handling. r=ochameau,devtools-reviewers
Comment 4•1 year ago
|
||
Backed out along with Bug 1862814, Bug 1864168, Bug 1864155, Bug 1862693 for causing bustage on nsRFPService.cpp.
Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/fefa2e429bdc
Use 1-based column number in tracer and DevToolsStartup command line handling. r=ochameau,devtools-reviewers
Comment 6•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox122:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•