-
Notifications
You must be signed in to change notification settings - Fork 29k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logpoint UX Issues: Toggle vs Add #97877
Comments
@hediet thanks for letting us know. |
Did you see the behavior in the gif of how the logpoints are inserted just where the cursor is? That is really annoying. |
I still think the UX is not great with the new It would be cool if a subsequent call to this command would
I think Logpoints are way underused. I think they are a perfect alternative to the |
Thanks for feedback, we can reopen this issue and look into the logpoint improvments some time in the future. |
toggleLogPoint
command does not toggle logpoint
I would love if logpoints could be made easier to use and more fun to work with. I see the following problems in the current implementation:
I think it would be cool if the inline editor for logpoints would stay open the entire time. This would fix 1) and 2). An inline editor next to the line would be even cooler (like an editable "after" text decoration) |
Thanks for the suggestions, we might revisit this in the future. Other suggestions I think make sense. Thanks! |
Thanks for your feedback! Im fine with 3). However 5) is somewhat broken currently: You should not be able to do that ;) You can't do that with plain breakpoints. As for 6), I think a little noise is not wrong here. Logpoints should be temporary anyways, as they modify how the application behaves (yes, they can have side effects). Imo they are the fast way to insert temporary I think it is much more important to quickly edit logpoints rather than making them invisble. If you debug something using logpoints, these logpoints are your center of attention and I would like to change them easily and see what they print. A debug run may succeed, but fail with logpoints. So its very important to be aware of the logpoints (as well as conditional breakpoints). However, I guess, due to UX, logpoints are not used often anyways (do you have telemetry for how often they are used?). So even if it would be noiser, it might increase their usage. I think with adjusting the colors (like making everything gray in this inline thing, including the top and bottom separator lines), you could reduce the noise. |
@hediet if you find time and if you are passionate about this I can provide pointers. Just let me know! |
5- "Add Logpoint" works the same as "Add inline breakpoint". Would you rather have two commands - "Add Inline Logpoint" with the current behavior and "Add Logpoint" which just adds it to the line? Do you want it to actually be "Toggle Logpoint"? Really the issue to me is that we don't have a way to remove inline breakpoints in general, and we also don't have a way to edit existing conditional/logpoints with a command. My preference would be that on the second invocation of the command, it edits the existing logpoint. 6- I wouldn't like this. I'd be open to something with a setting that keeps those editors open but I wouldn't make it the default.
This is interesting. But have to make sure it can't be pushed out of view by a long line of text |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Steps to Reproduce:
editor.debug.action.toggleLogPoint
.Actual Result
There is still a logpoint.
Expected Result
The second invocation should toggle the log point so that there is no logpoint anymore.
Also, the translation should be "Toggle Logpoint" and not "Add a Logpoint".
Also, the logpoint is inserted at the column where the cursor was when the command is invoked. This is strange.
If this is all design, the command should be renamed or another command should be added.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: