Skip to content

Add "Copy as..." from debug extensions #188604

@zobo

Description

@zobo

Hi all!

I was wondering if there were a way for a debugger extension to influence the debugger windows. In reference to this issue xdebug/vscode-php-debug#400 I was wondering if the PHP Debug extension could somehow register additional context options when a user right clicks on a variable to copy its value. I'd like to add context menu items like "Copy Value as JSON" and "Copy Value as var_export" and then have these commands send a DAP evaluateRequest with a specific, custom, context instead of clipboard. Like clipboard-json...

This could probably be achieved in a declarative way through the manifest (very issue specific) or some hooks in the extension code (more general approach).

Thanks!

Metadata

Metadata

Assignees

Labels

debugDebug 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