Skip to content

Feature Request: Custom Breakpoints For Extensions #10447

@smarr

Description

@smarr

Hi:

I am currently exploring the options of using VS Code to build a debugger for an actor-based language.

One of the things that are key for the project are custom and often complex types of breakpoints.
In our current prototype, we support for instance the following types of breakpoints:

Breakpoint on async-send operator

On the asynchronous message send operator, we can set a sender side or a receiver side breakpoint.

breakpoint on methods, only triggered by asynchronous messages

On method definitions, we can set breakpoints that are only triggered when that method is activated via an asynchronous message (but not when it is called synchronously).

Since this is probably far from a common requirement, I would also be more than happy with some recommendations of how I could prototype this myself.

While we have popovers in our prototype, the context menu might do (however, the 'when' clause in package.json does not seem to be taking callbacks for custom predicates?). A custom indicator/handle to interact with the breakpoint might still be nice (I think the decorator-sample comes with code that I can probably adapt).
And when the breakpoint is set, it needs to be communicated to the process that's debugged, but I'll probably be able to extend the debugging protocol to my needs.
So, I think, it should be possible for me to prototype something, but I'd be very grateful for guidelines and perhaps pointers to the most relevant elements that I should be aware of.

Thanks
Stefan

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS CodedebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions