Record a Debug Session Using Breakpoints

Return to Introduction  Previous page  Next page

The debugger enables you to record your debug session and create Sequence diagrams from the Stack Trace History. Recording can only occur for a given thread. The Debug Toolbar record buttons (Record and Autorecord) become enabled whenever a thread is available for recording. This occurs when a thread encounters a breakpoint, and becomes suspended.

For most applications it is typical that you would set breakpoints at the start and end points in the code for which to generate the diagram.

You can begin recording in either of the following ways:

The following example shows a debug sequence recorded for a thread executing managed C++ code under Microsoft .Net 1.1.

stack_trace_history

Create the Sequence Diagram

Once you have built up a stack trace history, you are then able to create a Sequence diagram from your results. To do this, click on the Create Sequence Diagram button on the Debug Toolbar and define your diagram. The diagram and related artifacts are placed in an interaction under the package that is running your debug session.

net_1_sequence_diagram

Debug Toolbar Commands

Debug_CreateSequenceDiagram

Create Sequence Diagram

Debug_SaveHistory

Save recorded history to HTML file for viewing in browser