With Enterprise Architect you can easily create detailed and comprehensive Sequence diagrams from your recorded Debug sessions. Enterprise Architect makes it simple to either manually step through your executing code and record specific execution traces, or let the debugger automatically step through.
Enterprise Architect can take the recorded stack history captured during one of these runs and automatically build the Sequence diagram, including compacting looping sessions for easy reading.
Once you have set up your debugger and can run and debug your application successfully, you can move on to recording the execution.
The following diagram illustrates the kind of diagram you can produce by carefully stepping through your running program or letting Enterprise Architect profile it automatically.