Enterprise Architect enables debugging of source code within Enterprise Architect, using a debug interface appropriate to the source language.
Debugging is configured by creating a debug script for the packages to be tested. One of the primary objectives of this feature is to enable you to perform a debug walk-through executing code, and capture your stack trace for direct conversion into a Sequence diagram. This is a great way to document and understand what your program is doing during its execution phase.