Skip to content

Clarify semantics of absent canRestart in StackFrame #347

@mfussenegger

Description

@mfussenegger

I recently implemented restart-frame support in a client and noticed that some debug adapters (e.g. java-debug) support restart on a frame that is missing the canRestart property. Based on the specification I'd have assumed that absence of the property is the same as false.

  /**
   * Indicates whether this frame can be restarted with the `restart` request.
   * Clients should only use this if the debug adapter supports the `restart`
   * request and the corresponding capability `supportsRestartRequest` is true.
   */
  canRestart?: boolean;

My question is, is java-debug supposed to set canRestart to true if it is supported, or is the absence of the property supposed to imply it's supported if supportsRestartRequest is set?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions