Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Debugging and the Workbench

While you are working in the Workbench, you may wish to debug one or more methods you are developing or investigating. This can easily be accomplished. The same features of Enterprise Architect's Execution Analyzer are available to users of the Object Workbench. Debugging can be performed during object construction and destruction as well as during the execution of a method. To gain access to the debugger, simply place a breakpoint at the points where you wish to step through the code. You could also set the condition on this breakpoint to only break under certain conditions.

When debugging, the state of objects are inspected using the debugger controls. Here we use the Locals window to examine the state of our object while execution is halted.

When the program resumes, the Object on the Workbench is will reflect any changes in state.