KEMBAR78
`Evaluate` requests contains not listed context "variables" · Issue #233 · microsoft/debug-adapter-protocol · GitHub
Skip to content

Evaluate requests contains not listed context "variables" #233

@ko1

Description

@ko1

I'm using VSCode 1.62.3.

On the https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Evaluate it only lists 4 contexts:

context?: 'watch' | 'repl' | 'hover' | 'clipboard' | string

but I got variables context when copying a value from a variable pane, without supportsClipboardContext.

image

(copy from the variable o)

Received request:

[VSCode->DA] {"command":"evaluate","arguments":{"expression":"#<Object:0x00007f039108c910>","frameId":1,"context":"variables"},"type":"request","seq":15}
  • Question1: Is it intentional not to list the variable context?
  • Question2: Why not passes variable name in expression if it means to get the result of "variable"? On Ruby language, sometimes the representation of the value becomes "#<Object:...> like above and it is not evaluate-able expression (and this is why I stop to support supportsClipboardContext).

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugclarificationProtocol clarification

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions