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

Highlight values of python attributes #69

Open
Rizhiy opened this issue Jan 5, 2024 · 1 comment
Open

Highlight values of python attributes #69

Rizhiy opened this issue Jan 5, 2024 · 1 comment

Comments

@Rizhiy
Copy link

Rizhiy commented Jan 5, 2024

How do I make it so Python attributes are also highlighted?
e.g.
image
I want self._hooks to have its value shown in addition to base and leaf_spec.

@theHamsta
Copy link
Owner

Hi Rizhiy! At the moment, nvim-dap-virtual-text only shows the values of locals reported by the debug adapter. Those scope variables don't required a manual evaluate request.

We could add rules to automatically expand scope our evaluate variables with children. We must be careful with that since in some rare cases such evaluate requests have side effects on the debugged program or make it or the debug adapter crash. But as an opt-in option it would be worth the experiment. Those could also work like nvim-dap-ui's watchpoints or only identify variables that the user manually evaluated

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