Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh to show variable value in debug mode #7409

Closed
shogunsea opened this issue Jan 20, 2022 · 2 comments
Closed

gh to show variable value in debug mode #7409

shogunsea opened this issue Jan 20, 2022 · 2 comments

Comments

@shogunsea
Copy link

Is your feature request related to a problem? Please describe.
From the doc, gh meant to behave as if cursor hover over a variable, this works perfectly except in vscode's debug mode, where gh still shows the definition or types of the variable, while hovering over the variable actually shows the varaible's currently evaluated result.

both of the screenshots are taken in debug mode:

gh:
gh

hover over:
image

Describe the solution you'd like
gh should provide a way to show evaluated variable value in debug mode.

Describe alternatives you've considered
n/a

Additional context
n/a

@w-cantin
Copy link
Contributor

Hello,

Although not exactly what you were asking for, it is possible to remap pretty much any vscode command in VSCodeVim using the "vim.normalModeKeyBindingsNonRecursive" setting and the "commands" attribute. In your case it would look like this:

  "vim.normalModeKeyBindingsNonRecursive": [
    { "before": ["leader", "g", "h"], "commands": ["editor.debug.action.showDebugHover"] },
]

This remapping does not automatically detect when VSCode is in debug mode but it might still be useful.

@shogunsea
Copy link
Author

@w-cantin that works perfectly! thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants