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.

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.

Debug Toolbar Commands
|
Create Sequence Diagram |
|
Save recorded history to HTML file for viewing in browser |


