Add log and Edit log on breakpoint in sidebar should scroll line into view
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(firefox102 fixed)
Tracking | Status | |
---|---|---|
firefox102 | --- | fixed |
People
(Reporter: Honza, Assigned: luke.swiderski, Mentored)
References
(Blocks 2 open bugs)
Details
(Keywords: good-first-bug, Whiteboard: dt-outreachy-2021)
Attachments
(2 files)
This has been originally reported here: https://github.com/firefox-devtools/debugger/issues/8198
STR:
- Load http://janodvarko.cz/firebug/tests/601/Issue601.htm
- Open DevTools and select the Debugger panel
- Open file Issue601.htm and create regular BP on line 64
- Scroll the source so the BP is not visible
- In the Breakpoints side panel right click on the BP and pick "Add Log" (or "Edit Log")
AR: the BP and log editor are not visible
ER: the source scrolls so the BP and log editor are visible.
Honza
Reporter | ||
Comment 1•4 years ago
|
||
A patch attached to the original issue. It seems to be working, but might need to be revisit.
diff --git a/devtools/client/debugger/src/components/SecondaryPanes/Breakpoints/BreakpointsContextMenu.js b/devtools/client/debu--- a/devtools/client/debugger/src/components/SecondaryPanes/Breakpoints/BreakpointsContextMenu.js
+++ b/devtools/client/debugger/src/components/SecondaryPanes/Breakpoints/BreakpointsContextMenu.js
@@ -233,26 +233,32 @@ export default function showContextMenu(
),
};
const addLogPointItem = {
id: "node-menu-add-log-point",
label: L10N.getStr("editor.addLogPoint"),
accesskey: L10N.getStr("editor.addLogPoint.accesskey"),
disabled: false,
- click: () => openConditionalPanel(selectedLocation, true),
+ click: () => {
+ selectSpecificLocation(cx, selectedLocation);
+ openConditionalPanel(selectedLocation, true);
+ },
accelerator: formatKeyShortcut(L10N.getStr("toggleCondPanel.logPoint.key")),
};
const editLogPointItem = {
id: "node-menu-edit-log-point",
label: L10N.getStr("editor.editLogPoint"),
accesskey: L10N.getStr("editor.editLogPoint.accesskey"),
disabled: false,
- click: () => openConditionalPanel(selectedLocation, true),
+ click: () => {
+ selectSpecificLocation(cx, selectedLocation);
+ openConditionalPanel(selectedLocation, true);
+ },
accelerator: formatKeyShortcut(L10N.getStr("toggleCondPanel.logPoint.key")),
};
const removeLogPointItem = {
id: "node-menu-remove-log",
label: L10N.getStr("editor.removeLogPoint.label"),
accesskey: L10N.getStr("editor.removeLogPoint.accesskey"),
disabled: false,
Comment 2•4 years ago
|
||
This might be a good first or mentored bug
Comment 3•4 years ago
|
||
Hi, I'd like to work on this. Can it be assigned to me?
Reporter | ||
Comment 4•4 years ago
|
||
Assigned to you, thank you for helping.
Honza
Comment 5•3 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Hi there, I'd like to work on this bug. Can it be assigned to me?
Comment 7•3 years ago
|
||
Hi Leslie,
Sure I've assigned it to you.
Feel free to ask any questions.
Updated•3 years ago
|
Comment 9•3 years ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit auto_nag documentation.
Reporter | ||
Comment 10•3 years ago
|
||
The patch looks good, just an automated test (mochitest) is missing
Still feels like a good first bug
Assignee | ||
Comment 11•2 years ago
|
||
This patch scrolls the editor to the log input when adding or editing a log
from the breakpoint context menu.
Updated•2 years ago
|
Comment 12•2 years ago
|
||
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a57484614314 Add/edit log on breakpoint in sidebar scroll line into view. r=bomsy
Comment 13•2 years ago
|
||
bugherder |
Description
•