Skip to content

Support for executing debugger commands upon hitting a breakpoint #84

@ivanhernandez13

Description

@ivanhernandez13

The DAP currently has support for three types of additions to breakpoints including conditions, hit count, and log messages.

interface SourceBreakpoint {
  line: number;
  column?: number;
  condition?: string;
  hitCondition?: string;
  logMessage?: string;
}

It would be nice if a user could attach commands to be automatically executed when a breakpoint is hit. This would be useful for some debuggers that have an extensive list of debugger commands that are more powerful than simply evaluating an expression such as GDB or LLDB.

The addition to SourceBreakpoint could be:

 /**
   * An optional list of commands that the backend will execute and log the output
   * (if any).
   */
  commands?: string[];

I know of at least 2 IDEs (IntelliJ and Xcode) that have support for executing any arbitrary debugger command(s) when a breakpoint is hit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions