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

Feature request: Support Show as Binary

Open inuter opened this issue 4 years ago • 1 comments

Currently, "Show as Hex" and " Show as Dec" is supported, but when I debug a program that used bit operations or bitmap structrue, I prefer to show an integer variable as binary, can you add this useful feature?

thanks! image

inuter avatar Nov 19 '21 03:11 inuter

Hi @inuter, 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.

Suggestions

  • Workaround: in the Debug Watch panel or Evaluate box, wrap your variable with Integer.toBinaryString(yourVar) to view its binary representation.
  • To help prioritize binary formatting in the Java Debug extension, upvote/add a comment in this feature request.

References

  • Support “Logical Structure” for debug variables: can be extended to custom views but doesn’t yet cover binary formatting. • https://github.com/microsoft/vscode-java-debug/issues/227
Other references with low confidence
  • [Feature request] set feature flag to control this feature (Java Pack) – about toggling a flag, not directly binary display. https://github.com/microsoft/vscode-java-pack/issues/1481
  • Unreferenced/Unused Method, Field highlight – unrelated to numeric display. https://github.com/redhat-developer/vscode-java/issues/3532
  • Always use test configuration or make it configurable – unrelated to debug formatting. https://github.com/microsoft/vscode-java-test/issues/264#issuecomment-410690528

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 06:11 github-actions[bot]