Disassembly Window (Compact 2013)
3/26/2014
In the Disassembly window you can debug optimized code or step through source-code lines that contain multiple statements. To display the window, go to Debug > Windows > Disassembly.
The source window acts on 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.
- Set a breakpoint on any instruction.
- Step Into or Step Over instructions in your program while the Disassembly window has focus. This causes the debugger to execute your program instruction-by-instruction instead of line by line.
- View and step through your code by disassembled instructions. This approach can be especially useful when debugging optimized code.
Press CTRL+F11 to switch between the Disassembly window and the source window.
Right-click the window to bring up a menu, which contains the following functions.
- Copy
Copies the selected text.
- Go To Source
Opens the source code in a new source code edit window.
- Show Current Statement
Shows the currently executing statement in the Disassembly window.
- Set Next Statement
Overrides the next statement and, instead, executes another statement that you selected.
- Run to Cursor
Runs to the location of the cursor in the Disassembly window.
Toggle 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/Disable Breakpoint
Enables a disabled breakpoint or disables an enabled breakpoint in the Disassembly window.
- Source Annotation
Displays the source code that is associated with the assembly language code in a different color.
- Show Code Bytes
Displays the machine language code that is associated with the assembly language code in a different color.
Source Path Mapping
Opens the Source Path Mapping Dialog Box.
- Symbol Search Path
Opens the Symbol Search Path Dialog Box.
See Also
Reference
Source Path Mapping Dialog Box
Concepts
Platform Builder User Interface