User forums > Using Code::Blocks

Debugger keybinding

(1/3) > >>

cacb:
I have been using MS Visual Studio for many, many years and have grown accustomed to the MS debugger keybindings. Actually, the Visual Studio debugger is rather good too, so that is one reason I have been using the MSVC compiler in Code::Blocks. I have simply created a simple tool that launches the Visual Studio GUI when debugging my Code::Blocks projects on Windows. Therefore, my keybinder habits remain, i.e. mostly these

   MSVC       C::B           Description
   ----       ----           -----------
   F5         F8             Start/Continue
   F10        F7             Next Line
   F11        Shift+F7       Step Into
   Shift+F11  Shift+Ctrl+F7  Step Out

Now that the C::B debugger has improved in many ways, I'd like to try and use it more, especially under Linux. The default keybinding for the debugger remains an obstacle though, I would like to continue using the MSVC keybinding scheme, as I am so used to it and find the C::B scheme a distraction when debugging.

So I would like to configure the debugger keybindings according to the MSVC scheme shown above (list is not complete). It seems to me I have no way to redefine the debugger keybindings in C::B, but I may have overlooked some way to use the Keybinder plugin or something like that? Is there a config file for this somewhere?

zabzonk:
Settings|Editor|Keyboard Shortcuts, and then select the Debug commands from the tree.

oBFusCATed:
cacb: unfortunately f10 is a reserved key in gtk, so it can't be used...

cacb:
@Neil
That is a wonderful reply, thanks a lot. I noticed you have to have the debugger plugin enabled for the debugger commands to be visible in that tree. Not a big surprise.... but I had it disabled in Windows  :)

@oBFusCATed
You are obviously right that F10 keybinding is a problem in Code::Blocks. I am running under KDE (Kubuntu 12.04) and I was able to assign all the keys listed, including F10 following Neil's description, see screenshot of my Debug menu under KDE now. However, it doesn't work, as you say. I would say that is a bug in one way or another: Either it should work or it should be disallowed.

And I don't see why it should not work: I don't think it is generally true that F10 can't be used by applications under KDE (is there a distinction between KDE and 'gtk' here?). I just looked around in some other KDE programs, and I can't see they behave like this. For example, the KDE Text Editor 'Kate' actively uses F10 keyboard shortcut for toggling 'Dynamic Word Wrap' in its View menu. No problems at all.

If at all possible I would prefer if Code::Blocks disabled (or allowed me to disable) such menubar shortcuts that I never use anyway. They just get in the way of the more important debugger configuration.

Possible?

cacb:
Another problem observed is that Shift+F11 does not seem to work as specified. When that keybinding is assigned to the Debug|Step Out function as I did, it works exactly as F11, i.e. as Debug|Step into. That looks like a bug.

Selecting Debug|Step Out with the mouse in the Debug menu works fine.

Out of 4 keybindings attempted, 2 fail. If they all worked, it would be a very nice solution to the debugger keybinding issue. But as it is, it isn't usable for what I attempted.

Btw. under Kubuntu I am running Nightly Build svn 8133 from http://apt.jenslody.de/stable

Navigation

[0] Message Index

[#] Next page

Go to full version