Partager via


Disassembly Window (Windows CE 5.0)

Send Feedback

The Disassembly window enables debugging of optimized code, or stepping through source-code lines that contain multiple statements.

The source window treats each line of code as a unit. For example, the following line of code contains multiple statements:

x=1; y=7; Z=3;

This line of code is treated as one unit, even though it contains different statements.

When you use the source window, you cannot step from one statement on a source-code line to the next or set a breakpoint on any statement other than the first.

The Disassembly window operates on disassembled (assembly-language or bytecode) instructions instead of source-code statements or lines.

By using the Disassembly window, you can set a breakpoint on any instruction.

If you use the Step Into or Step Over command while the Disassembly window has focus, the debugger steps through your program instruction by instruction instead of line by line.

Viewing and stepping through your code by disassembled instructions can be especially useful when debugging optimized code.

Note   You can press CTRL+F11 to switch between the Disassembly window and the source windows.

  • Shortcut menu
    Right-click the window to bring up a menu, which contains the following functions.
    Item Description
    Go To Source Opens the source code in a new source code edit window.
    Show Next Statement Shows the next statement that would be executed, in the disassembly window.
    Source Path Mapping Opens the Source Path Mapping Dialog Box.
    Insert/Remove Breakpoint Inserts a breakpoint, if there is none, at the line where the cursor is in the Disassembly window.

    If there is a breakpoint at that line, it is removed.

    Enable Breakpoint Enables a breakpoint in the Disassembly window.
    Run to Cursor Runs to the cursor in the Disassembly window.
    Set Next Statement Overrides the next statement, instead executing another statement you selected.
    Source Annotation Displays the source code associated with the assembly language code in a different color.
    Code Bytes Displays the machine language code associated with the assembly language code in a different color.
    Docking View Switches the active window from docking to nondocking mode:
    • Docking mode. When a window is in docking mode, a check mark appears.

      You can dock the window to the border of the main Platform Builder window, or you can change the window to a floating window that can be moved outside the main Platform Builder window.

      To change the window to a floating window, hold the CTRL key and click the frame of the window you select.

      This window can be redocked at any time.

    • Nondocking mode. If the window is in nondocking mode, it appears only inside the main Platform Builder window and cannot be docked.
    Close Closes the active window.

See Also

Source Path Mapping Dialog Box | Viewing Source Code in the Disassembly Window | Changing Disassembly Window Options

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.