j6t / kdbg

A Graphical Debugger Interface around GDB
GNU General Public License v2.0
89 stars 19 forks source link

(kind of) missing commands #39

Open RJVB opened 3 months ago

RJVB commented 3 months ago

First time since years tinkering with gdb and a GUI to it again, and minutes after installing kdbg I already miss at least 2 commands:

j6t commented 3 months ago
  • c(ontinue). One I use all the time. It looks like the Run command becomes Continue once the debuggee is started but that's an ambiguous implementation that clashes with gdb's commandline. IMHO it would be better to let Run become Restart after starting the programme, and to replace the current Restart action with Continue. Or, if I'm wrong, change Run to Cont (and back again).

Are you saying that you care how the command is named? I would have expected that once you find out that you can use F5 instead of clicking a button, you will never care about its name or icon again.

If there is an easy way to change the title of the command (and only the title), that is a way I can approve. But Continue is not going to be split off from Run unless it is possible to use the same keyboard shortcut for both commands without confusing the user and the Keyboard Shortcut dialog.

  • a commandline widget. I know, "The idea is that every feature of gdb is accessible by some user interface element."

I admit that I have changed my mind a bit as far as command line access is concerned. The drawbacks that I saw in early days do not seem to exist when it is done right. However, I am not going to implement it myself.

RJVB commented 3 months ago

On Monday April 01 2024 12:28:41 Johannes Sixt wrote:

Are you saying that you care how the command is named?

Well, yes, I interfaces that are clear/precise and consistent, esp. if they are several to the same application that are likely to be used interchangeably. You're right that most people will end up using the shortcut, but they do have to figure out the interface at some point and some (me included) will probably use the application so rarely that they'll need to get re-acquainted with the workings more than once. (I didn't mention the shortcuts because they can be changed; F5 has been my window iconification shortcut since forever ;) ).

However, I am not going to implement it myself.

That doesn't surprise me. Not so long ago I might have considered it a fun little project. I still could, but I have enough other examples of those already...