Prev | Next |
Debugging and the Workbench
While you are working in the Workbench, you might want 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 at which to step through the code. You could also set the condition on these breakpoints to only break under certain conditions.
When debugging, the states 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 will reflect any changes in state.