vscode-java-debug icon indicating copy to clipboard operation
vscode-java-debug copied to clipboard

Cannot see the variables in hover view

Open jdneo opened this issue 4 years ago • 1 comments

Environment

Version: 1.57.0-insider (user setup) Commit: 541a5d4fa70ab3095f23b28b88914e1f6a8f65c4 Date: 2021-05-28T09:50:57.063Z Electron: 12.0.9 Chrome: 89.0.4389.128 Node.js: 14.16.0 V8: 8.9.255.25-electron.0 OS: Windows_NT x64 10.0.19043

  • JDK version: 11
Steps To Reproduce

image

[attach a sample project reproducing the error] attach logs

Current Result
Expected Result
Additional Informations

jdneo avatar May 31 '21 05:05 jdneo

Hi @jdneo, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.

Possible Solutions

  • Ensure your code is compiled with debug information (e.g. add -g to javac or set <debug>true</debug> in Maven Compiler Plugin).
  • Update to the latest Java Debugger extension: run “Extensions: Check for Updates” in VS Code.
  • Verify VS Code’s hover and inline debug settings:
    • editor.hover.enabled: true
    • debug.inlineValues: true
    • java.debug.settings.showInlineValues: true
  • Enable detailed logging and share the output:
    • In settings.json:
      "java.trace.server": "verbose",
      "java.debug.settings.showHex": true
      
    • Follow https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting#enable-logging

Duplicate Issue

  • This appears to be the same as “hover instance in debug mode don't show popup with details”: https://github.com/microsoft/vscode-java-debug/issues/444
Other references with low confidence
  • Can’t evaluate variables in debug console (also no hover tooltip): https://github.com/microsoft/vscode-java-debug/issues/835
  • “Variable information unavailable for native methods” and no hover: https://github.com/microsoft/vscode-java-debug/issues/917

The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!

github-actions[bot] avatar Nov 11 '25 07:11 github-actions[bot]