Keyboard shortcut to delete all breakpoints

Answered

It would be great to be able to set up a keyboard shortcut to delete all breakpoints without having to go through the dialog every time.

0
8 comments

In File > Settings > Keymap, you can set a shortcut for Remove all breakpoints (in the current file). Please pay attention that you can't undo this operation. 

0

Thanks for the tip!

Unfortunately, removing all breakpoints in the current file only is not very useful for me, since the breakpoints from a previous debug run are almost always in a different file. A shortcut to remove each and every breakpoint in the entire project would be greatly appreciated.

0

Hi Tommi. There are two shortcuts you can add: Remove all breakpoints and Remove all breakpoints in the current file.

0

The PyCharm debugger is outstanding.  I have been using PyCharm for many years, and but I also have been wanting this exact functionality.  I finally did a search and found this write up.  I followed the instructions here, and I got it to work (although on a Mac, it is called "Preferences" not Settings).

However, I feel strong that the ability to remove all breakpoints from all files should be available as a menu command, with a shortcut.  I have used many different debuggers with many different development environments, and this functionality has always been available.  Most of the time, when I discover and fix bug in my code, I want to remove any breakpoints that I set to track it down.

I would strongly encourage JetBrains to add "Remove All Breakpoints" as a menu item, perhaps under the "Run" menu, with whatever keyboard shortcut you deem appropriate.  I think this would be a welcome new feature.  Individuals should not have to hunt down an obscure setting of keyboard mapping to add this functionality themselves.

Thanks for your consideration.

Irv

1

Hi Irv, 

thank you for the feedback. 

I added a feature request for this, please, feel free to follow: IDEA-240442

Note that you can remove all breakpoints by invoking Ctrl+Shift+F8 (View Breakpoints) -> Ctrl+A (Select All) -> Del.

 
1

Thank you for adding a feature request.  I hope to see it in a future release.

 

Just wanted to let you know that I have just published a video that shows how to use the PyCharm Debugger to debug programs in Python 3.  Available on YouTube here:

https://www.youtube.com/watch?v=cxAOSQQwDJ4&t=629s

Irv

0

Ctrl+Shift+F9 - this one works

0

Thanks for your comment Anichiporovich.  Sorry for the late replay.  I finally got around to updating to the latest release of PyCharm CD Mac:  PyCharm 2024.1.3

I was excited to try out the suggestion, but it doesn't seem to work.  

On a Mac, it's sometimes difficult to translate the meaning of Ctrl - sometimes it's Command and other times it's Control.  So I tried both, and neither one worked - neither removed any breakpoints.  

Still hoping that this can be implemented and in an obvious way.

0

Please sign in to leave a comment.