Debugger Only Shows Integer Values As Hex, Not Base 10

a_unique_name 401 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

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
966 questions
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 114.4K Reputation points
    2024-02-10T05:59:44.94+00:00

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful