Debugger Only Shows Integer Values As Hex, Not Base 10

a_unique_name 421 Reputation points
2024-02-10T01:49:42.7+00:00

Hello Folks: I'm using Visual Studio Community on Windows 10 Pro to develop C++ code.
Yesterday my copy of Visual Studio learned a new trick when I'm debugging code.
Any integer variable displayed in a watch window or being hovered over is displayed as base 16, not base 10.
I clicked on Debug > Options... > Debugging > General but I don't see anything that looks like it's causing the problem.
I downloaded the latest Visual Studio, Version 17.8.6. The problem persists.Any suggestions?
Thanks
Larry

Developer technologies | Visual Studio | Debugging
0 comments No comments

Answer accepted by question author
Viorel 127.3K Reputation points
2024-02-10T05:59:44.94+00:00

Try to right-click the Watch or Locals window, and select “Hexadecimal Display”.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Jochen Baier 0 Reputation points
    2026-10-29T16:14:15.23+00:00

    I made a Visual Studio Extension which shows both at the same time:
    https://marketplace.visualstudio.com/items?itemName=JochenBaier.AlwaysHex

    debugger_view

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.