This documentation is archived and is not being maintained.

Using the Disassembly Window

The Disassembly window shows assembly code corresponding to the instructions created by the compiler. If you are debugging managed code, these assembly instructions correspond to the native code created by the JIT compiler, not the intermediate language generated by the Visual Studio compiler.

Note   This feature is not available for SQL debugging.

To display the Disassembly window

  • From the Debug menu, choose Windows and click Disassembly. (The debugger must be running or in break mode.)

In addition to assembly instructions, it can show the following optional information:

  • Memory address where each instruction is located. (For native applications, this is the actual memory address. For Visual Basic, C#, or managed code, it is an offset from the beginning of the function.)
  • Source code from which the assembly code derives
  • Code bytes (byte representations of the actual machine or IL instructions)
  • Symbols names for the memory addresses
  • Line numbers corresponding to the source code

To turn optional information on or off

  • Right-click the Disassembly window and set or clear the desired options in the shortcut menu.

A yellow arrow in the left margin marks the location of the current execution point. For native code, this corresponds to the CPU's program counter. This location shows the next instruction that will be executed in your program.

For information on navigating the memory space, see Paging Up or Down in Memory.

See Also

Disassembly Window | Debugging Basics: Disassembly Window | Debugging Tools for Inspecting Your Program