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 / C++ / MFC
  4. Visual C++ .NET Disassembly Window

Visual C++ .NET Disassembly Window

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpdebuggingquestion
5 Posts 2 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.
  • V Offline
    V Offline
    valikac
    wrote on last edited by
    #1

    Hello. Where is the option to view and debug source code directly in assembly mode via the Disassembly Window in Visual C++ .NET? Older versions including 6.0 has a menu item, View->Debug Windows->Disassembly. Thanks, Kuphryn

    A 1 Reply Last reply
    0
    • V valikac

      Hello. Where is the option to view and debug source code directly in assembly mode via the Disassembly Window in Visual C++ .NET? Older versions including 6.0 has a menu item, View->Debug Windows->Disassembly. Thanks, Kuphryn

      A Offline
      A Offline
      Antti Keskinen
      wrote on last edited by
      #2

      Whilst running in Debug mode, choose Debug->Windows-Disassembly, or alternatively press CTRL+ALT+D. The Disassembly mode is unavailable in Design (coding) mode. You must run the debugger in order to show/hide this window. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

      V 1 Reply Last reply
      0
      • A Antti Keskinen

        Whilst running in Debug mode, choose Debug->Windows-Disassembly, or alternatively press CTRL+ALT+D. The Disassembly mode is unavailable in Design (coding) mode. You must run the debugger in order to show/hide this window. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

        V Offline
        V Offline
        valikac
        wrote on last edited by
        #3

        Okay. Thanks. I still cannot view the assembly code in debug mode. The error is "(Disassembly cannot be displayed in run mode.)." The problem is you cannot "debug" a module without running it. I need to be able to see the assembly code line by line. Kuphryn

        A 1 Reply Last reply
        0
        • V valikac

          Okay. Thanks. I still cannot view the assembly code in debug mode. The error is "(Disassembly cannot be displayed in run mode.)." The problem is you cannot "debug" a module without running it. I need to be able to see the assembly code line by line. Kuphryn

          A Offline
          A Offline
          Antti Keskinen
          wrote on last edited by
          #4

          This is because you are "live" running the program in debug mode. In order to see the disassembly, you must set breakpoints into the code and fill the necessary requirements for the breakpoint to be reached (For example, if you set a breakpoint to a button click, you must manually click the button in order to reach the breakpoint). If you want to step through the entire code in debug mode, you must first run the program, then choose Debug->Break All, and Debug->Restart. This will take you to the first line of assembly code in the program, and you can use F10 to step forwards through the code. The reason why the assembly code is not shown while the program is 'live' is simple: the code would run before your eyes way too fast for you to follow it. That is why you must set breakpoints. When a break is reached, the cursor will stop on the line where the break is, and the disassembly window will show the assembly code lines residing in the vicinity of this code line, namely, the codes required to execute this procedure. So, you can only see the assembly code line by line if you set a breakpoint and the code reaches this point. If you want to step through the entire program (which will take AGES), then use Debug->Start, Debug->Break All, Debug->Restart. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

          V 1 Reply Last reply
          0
          • A Antti Keskinen

            This is because you are "live" running the program in debug mode. In order to see the disassembly, you must set breakpoints into the code and fill the necessary requirements for the breakpoint to be reached (For example, if you set a breakpoint to a button click, you must manually click the button in order to reach the breakpoint). If you want to step through the entire code in debug mode, you must first run the program, then choose Debug->Break All, and Debug->Restart. This will take you to the first line of assembly code in the program, and you can use F10 to step forwards through the code. The reason why the assembly code is not shown while the program is 'live' is simple: the code would run before your eyes way too fast for you to follow it. That is why you must set breakpoints. When a break is reached, the cursor will stop on the line where the break is, and the disassembly window will show the assembly code lines residing in the vicinity of this code line, namely, the codes required to execute this procedure. So, you can only see the assembly code line by line if you set a breakpoint and the code reaches this point. If you want to step through the entire program (which will take AGES), then use Debug->Start, Debug->Break All, Debug->Restart. -Antti Keskinen ---------------------------------------------- The definition of impossible is strictly dependant on what we think is possible.

            V Offline
            V Offline
            valikac
            wrote on last edited by
            #5

            Okay. Thanks. Kuphryn

            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