Skip to content

Improve toggling and clearing debugger breakpoints #101

@NathanLovato

Description

@NathanLovato

We have debugger support since a few months, and it works, but the UX could use some more refinement.

Clearing breakpoints is tedious at the moment at you have to go to every line with a breakpoint and run the remove breakpoint command.

Here are some tasks to improve the UX.

New commands

  • Remove breakpoints in range: loop over all breakpoints in the selected range and remove them.
  • Remove breakpoints in buffer: using the range function above, remove breakpoints in the entire buffer.
  • Remove breakpoints in defun. Same as above but for the defun where the point is, so you don't have to do a selection first. GDScript code is mostly functions (methods) so that could come in handy.

Usability

  • Add shortcut for toggle breakpoint.
  • Remove shortcuts for add and remove breakpoints, they'll be replaced by the above.
  • Add shortcuts that match Godot's debugger and run? F5 to F9 are not bound by default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions