Bug 407064 - Cannot toggle breakpoint by single click
Summary: Cannot toggle breakpoint by single click
Status: CONFIRMED
Alias: None
Product: kdevelop
Classification: Applications
Component: UI: general (show other bugs)
Version: 5.9.220801
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-29 18:57 UTC by Alexander Potashev
Modified: 2022-12-11 11:19 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (31.68 KB, image/png)
2019-04-29 18:57 UTC, Alexander Potashev
Details
Enable "icon border" and set breakpoint as default (497.68 KB, video/x-matroska)
2019-04-29 19:24 UTC, Juraj
Details
screenshot of context menu for existing BP (33.86 KB, image/png)
2019-04-29 19:25 UTC, Alexander Potashev
Details
Screenshot of context menu without breakpoint (24.07 KB, image/png)
2022-06-21 07:41 UTC, Artem Kliminskyi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Potashev 2019-04-29 18:57:24 UTC
Created attachment 119720 [details]
screenshot

SUMMARY
Cannot toggle breakpoint by single click. I believe it was possible to click to the left of the editor to toggle breakpoints some time ago (~10 years ago). Now if you left-click in the marker column, only a bookmark is added.

Please either
 1. Add another marker column for breakpoints to allow easy toggling of breakpoints and bookmarks by left-clicking in the respective marker column, or
 2. Make the left-click action configurable in the KDevelop settings dialog.

The first option would be better because these markers would be easier to find visually. At the moment these markers overlap one another, see screenshot: it's really hard to notice that the line with breakpoint is bookmarked at the same time.


Операционная система: Fedora 29
Версия KDE Plasma: 5.14.5
Версия Qt: 5.11.3
Версия KDE Frameworks: 5.55.0
Версия ядра: 5.0.6-200.fc29.x86_64
Архитектура: 64-битная
Comment 1 Juraj 2019-04-29 19:01:32 UTC
Hello,
have you tried to enable Icon border ?
Menu > View > Borders > [x] Show Icon Border

After enabling it, right click on it to invoke context menu.
In context menu select: Set Default Mark Type > Breakpoint
Comment 2 Alexander Potashev 2019-04-29 19:18:26 UTC
"Show Icon Border" is enabled. I can toggle breakpoints using context menu, but it's too complicated and I think it's a regression introduced since KDevelop 4.x. Single click is much better experience than use of context menu for such a common action.
Comment 3 Juraj 2019-04-29 19:21:09 UTC
I know, that is why I explained how to set breakpoint as default.
Go with mouse on icon border and right click and followinstructions.
Comment 4 Juraj 2019-04-29 19:24:03 UTC
Created attachment 119722 [details]
Enable "icon border" and set breakpoint as default

Example on how to follow what I wrote.
Comment 5 Alexander Potashev 2019-04-29 19:24:44 UTC
Found it. Thanks!

It was hard to discover because when I right-click on an existing breakpoint, there is no submenu "Set Default Mark Type", see the new screenshot.
Comment 6 Alexander Potashev 2019-04-29 19:25:15 UTC
Created attachment 119723 [details]
screenshot of context menu for existing BP
Comment 7 Artem Kliminskyi 2022-06-21 07:41:57 UTC
Created attachment 149992 [details]
Screenshot of context menu without breakpoint

From version 21.12 (may be earlier) there is no longer a breakpoint entry. I can set a breakpoint only with a key combination or with context menu of the line of code itself (not border).
Comment 8 cachandler 2022-08-07 06:57:25 UTC
I also have this issue. Is there no way to set the default to breakpoints instead of bookmarks at this time? Given that clicking next to the line number to add a breakpoint standard convention across most IDEs, this seems like something that should be set by default.
Comment 9 Gabriele Menna 2022-10-03 07:31:57 UTC
Right click on the icons border triggers the Kate popup menu, instead of the abitual kdevelop menu allowing to set the default click behaviour
Comment 10 Artem Kliminskyi 2022-10-03 08:23:08 UTC
*** This bug has been confirmed by popular vote. ***
Comment 11 Eugene Shalygin 2022-12-10 13:25:25 UTC
(In reply to Gabriele Menna from comment #9)
> Right click on the icons border triggers the Kate popup menu, instead of the
> abitual kdevelop menu allowing to set the default click behaviour

And the left click toggles another menu, which provides an option to set the default mark type, but settings that makes no difference, the next left click toggles the same menu.
Comment 12 Igor Kushnir 2022-12-11 10:21:30 UTC
(In reply to Eugene Shalygin from comment #11)
> And the left click toggles another menu, which provides an option to set the
> default mark type, but settings that makes no difference, the next left
> click toggles the same menu.
This behavior must be a consequence of some change in ktexteditor 5.100, because it started happening to me only after a recent system update (the kdevelop-git package did not change, was built from master two months ago). Breakpoints were toggled by single click, as expected, before the system update.
Comment 13 Igor Kushnir 2022-12-11 10:29:12 UTC
Found it: https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/441. The default mark type is now set only if Ctrl is pressed. Though this works only if Bookmark is the default type with KTextEditor 5.100. Fixed in https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/445 (KTextEditor 5.101).
Comment 14 Eugene Shalygin 2022-12-11 10:47:26 UTC
(In reply to Igor Kushnir from comment #13)
> Fixed in https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/445 (KTextEditor 5.101).

Have 5.101 installed, but left clicks still show the menu. At least I know I can press Control to set a breakpoint, thank you!
Comment 15 Igor Kushnir 2022-12-11 11:18:15 UTC
(In reply to Eugene Shalygin from comment #14)
> (In reply to Igor Kushnir from comment #13)
> > Fixed in https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/445 (KTextEditor 5.101).
> 
> Have 5.101 installed, but left clicks still show the menu. At least I know I
> can press Control to set a breakpoint, thank you!
I meant that the new feature "The default mark type is now set only if Ctrl is pressed" is fixed in KTextEditor 5.101. I personally prefer the previous KDevelop behavior (Breakpoint set on a simple left click). I don't understand why couldn't the default mark type submenu be moved into the right-click menu instead of requiring holding Ctrl to set the default mark.