Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. My variables content appear in hexadecimal

My variables content appear in hexadecimal

Scheduled Pinned Locked Moved C#
debuggingtutorialquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gapfulgence
    wrote on last edited by
    #1

    Hi, when I try to evaluate a member in debug mode by pointing on a variable to see its content, the data that is displayed is i hexadecimal. For example, I do the following instruction: int t=-1; After passing the instruction, I try to see the content of the variable 't' and what I see is '0xffffffff'. All the data I try to evaluate appear using the same notation. Do you know how I can change that to see them in decimal ? Thanks a lot for attention. Patrick.

    p.f. Goudjo-Ako Bringing our energy together !

    B 1 Reply Last reply
    0
    • G gapfulgence

      Hi, when I try to evaluate a member in debug mode by pointing on a variable to see its content, the data that is displayed is i hexadecimal. For example, I do the following instruction: int t=-1; After passing the instruction, I try to see the content of the variable 't' and what I see is '0xffffffff'. All the data I try to evaluate appear using the same notation. Do you know how I can change that to see them in decimal ? Thanks a lot for attention. Patrick.

      p.f. Goudjo-Ako Bringing our energy together !

      B Offline
      B Offline
      Bert delaVega
      wrote on last edited by
      #2

      Right click on the variable display and the popup menu has an option for hexadecimal. Just uncheck it.

      G 1 Reply Last reply
      0
      • B Bert delaVega

        Right click on the variable display and the popup menu has an option for hexadecimal. Just uncheck it.

        G Offline
        G Offline
        gapfulgence
        wrote on last edited by
        #3

        Thanks for answering. But, there is no option for hexadecimal, so I can't uncheck it. I'm working with Visual Studio 2005.

        p.f. Goudjo-Ako Bringing our energy together !

        P B 2 Replies Last reply
        0
        • G gapfulgence

          Thanks for answering. But, there is no option for hexadecimal, so I can't uncheck it. I'm working with Visual Studio 2005.

          p.f. Goudjo-Ako Bringing our energy together !

          P Offline
          P Offline
          PhilDanger
          wrote on last edited by
          #4

          It's there. It's called Hexidecimal Display.

          G 1 Reply Last reply
          0
          • P PhilDanger

            It's there. It's called Hexidecimal Display.

            G Offline
            G Offline
            gapfulgence
            wrote on last edited by
            #5

            Ok, I found it. But it's not directly available in the popmenu displayed after pointing a variable. I did it from the 'Watch' window. Thanks !

            p.f. Goudjo-Ako Bringing our energy together !

            1 Reply Last reply
            0
            • G gapfulgence

              Thanks for answering. But, there is no option for hexadecimal, so I can't uncheck it. I'm working with Visual Studio 2005.

              p.f. Goudjo-Ako Bringing our energy together !

              B Offline
              B Offline
              Bert delaVega
              wrote on last edited by
              #6

              Try this: As you're debugging, go to the locals (or watch) panel. Select a variable (name, value, type) and right click. It lets you toggle the hex display.

              G 1 Reply Last reply
              0
              • B Bert delaVega

                Try this: As you're debugging, go to the locals (or watch) panel. Select a variable (name, value, type) and right click. It lets you toggle the hex display.

                G Offline
                G Offline
                gapfulgence
                wrote on last edited by
                #7

                It works this way. Thanks for replying ! Pat.

                p.f. Goudjo-Ako Bringing our energy together !

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups