Expose line-wrap as option in the debugger
Categories
(DevTools :: Debugger, enhancement, P3)
Tracking
(firefox81 fixed)
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: Harald, Assigned: luc4leone)
References
(Blocks 2 open bugs)
Details
(Keywords: dev-doc-needed)
Attachments
(3 files)
Bug 1108132 landed devtools.debugger.ui.editor-wrapping
. Lets expose it in the Debugger, either context menu now and/or settings menu later.
Reporter | ||
Comment 1•5 years ago
|
||
Comment 3•5 years ago
|
||
Kevin, I think this would be right up your alley! We recently implemented a gear icon for the console -- I think we could do the same for line wrap, inline preview, etc. for the debugger!
Reporter | ||
Comment 4•5 years ago
|
||
v0 for this could just add it to the context menu in the source.
One caveat I noticed, with line wrap on in Debugger, switching Debugger tab with pretty-printed file open took several seconds due to several expensive layouts from code mirror; probably some code path that only gets hit for line-wrapped views.
Comment 5•5 years ago
|
||
I can work on this.
Thanks for the recommendation, David!
Comment 6•5 years ago
|
||
Assigning to you, thanks for the help.
Honza
Comment 7•5 years ago
|
||
Honza, just to clarify:
When you say "add it to the context menu in the source", are you referring to the context menu in the Sources tree (highlighted in red)?
Comment 8•5 years ago
|
||
(In reply to Kevin Morehouse from comment #7)
When you say "add it to the context menu in the source", are you referring to the context menu in the Sources tree (highlighted in red)?
It could also be the context menu in the source code preview (or both).
Let's ask Harald what he had in mind.
Honza
Reporter | ||
Comment 9•5 years ago
|
||
It could also be the context menu in the source code preview (or both).
Right, context menu in the source of a file, where we also show Inline Preview
as option.
Comment 10•5 years ago
|
||
Ok, great. Thank you both. Apologies for any confusion my last message may have caused.
Reporter | ||
Comment 11•5 years ago
|
||
Just something to QA after this; I had to disable the line-wrap option as it caused severe multi-second hangs when switching from Debugger to Console (something in code mirror).
Comment 12•5 years ago
|
||
Can I be please be removed from this? I don't currently have the time to work on it. I'll come back if anything changes. Thanks!
Updated•5 years ago
|
Assignee | ||
Comment 14•5 years ago
|
||
(In reply to :Harald Kirschner :digitarald from comment #9)
It could also be the context menu in the source code preview (or both).
Right, context menu in the source of a file, where we also show
Inline Preview
as option.
Did I understood it right Harald?
Assignee | ||
Comment 16•5 years ago
|
||
(In reply to :Harald Kirschner :digitarald from comment #15)
Yes, this nails it :)
Thanks Harald :)
I managed to make it work, but I have a doubt. It works only if after toggling the context menu item I close (and then open) the Dev Tools. Is that how it's supposed to work, or lines should wrap immediately after toggling? I made a 34s video to explain this point better: https://www.dropbox.com/s/r9w6ccu9ory5z8f/01_should-it-work-like-that.mov?dl=0
As for the context menu item label for now I wrote Wrap long lines
/ Unwrap long lines
. A shorter option might be Wrap lines
/ Unwrap lines
. I started with a verb because that's what the other labels do. There are many other options. For example Textmate editor uses Wrap column
, while VSCode in general starts with Word wrap
(there are a few options regarding wrapping). What do you think is the best copy?
Assignee | ||
Comment 17•5 years ago
|
||
Hi Jason, I'd like to be assigned to this one. Should I first submit a patch and then wait for feedback or better wait for an answer to my doubt (see my comment above)? Thanks.
Updated•5 years ago
|
Assignee | ||
Comment 19•5 years ago
|
||
Added an option to the debugger editor context menu for the user to be able to wrap / unwrap long lines.
Reporter | ||
Comment 20•5 years ago
|
||
Let's see if we can get this unstuck …
Assignee | ||
Comment 21•5 years ago
|
||
(In reply to :Harald Kirschner :digitarald from comment #20)
Let's see if we can get this unstuck …
Hi Harald,
I submitted a patch https://phabricator.services.mozilla.com/D60681#C2083687NL61 a couple of weeks ago. I need to take care of a Lint error about function complexity, and I need to write the code to change the app state, because right now the app updates only if I close and re-open it, which I guess, it's not the expected behavior. I'll try to do it this week, is that OK with you?
Reporter | ||
Comment 22•5 years ago
|
||
Thanks for the ping back luc4leone! It is OK to take your time – mostly wanted to check if I had dropped the ball of if you were waiting on input from us.
Updated•4 years ago
|
Comment 23•4 years ago
|
||
Comment 24•4 years ago
|
||
bugherder |
Description
•