开发者

what's the keyboard shortcut to toggle breakpoint in pydev using eclipse

I think I'm missing the elephant in the room but for the life of me I can't find the keyboard shortcut to setting a breakpoint in eclipse when using the pydev plugin.

Things that I've already tried:

  1. Ctrl + Shift + B: does nothing.

  2. Ctrl + F10: brings up the breakpoint context menu where you can select to add breakpoint, remove etc... I don't want开发者_如何学Python to have to scroll through a menu every time I want to use a keyboard shortcut.. .kinda defeats the purpose of a shortcut.

  3. Clicking on the strip on the left hand side of the code: this is the only way that I'm setting it atm, but I'm rather avoid using the mouse if I can.

I'm using pydev 1.6.1 on eclipse 3.6

EDIT (31/08): In light of the two answers by codedevour and Tao, I've tried editing the shortcut but have had no luck with the new shortcut Ctrl + Shift + Alt + B either. Other shortcuts work. I've also tried changing the "When" drop down from In Windows to 'Pydev editor scope' with no effects. From what the editor is telling me, there is no conflicts with the breakpoint shortcut.

This is a fresh install on two machines, both windows 7 and it's happened on both machines.


Finally found it!

The answer is here: http://www.mail-archive.com/pydev-users@lists.sourceforge.net/msg04234.html

In short, shortcuts are not set for all perspectives of eclipse. Whilst in the pydev perspective, go to Window > Customize perspective > Command Groups Availability > Check breakpoints.

That's it!

I was using the pydev perspective (which is what it switches to when you first create a pydev project) however, breakpoint shortcuts are only available in the debug perspective by default so you need to turn the shortcut on... wow that was so NOT obvious!


Ctrl + Shift + B

If this refuses to work, have a look at Window > Preferences > General > Keys and look for overlayed keys which may shadow this shortcut.


Ctrl + Shift + B works for me and I am using pydev 1.6.1 with eclipse 3.6.

Perhaps, you have a conflict with another program? Try change it under menu Window > Preference > General > Keys > Toggle Breakpoint to another keyboard shortcut.


On recent pydev versions:

Go to Window > Perspective > customize perspective... And in tab "Action Set Availability", check "Breakpoints"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜