When you debug an application, you can inspect the values of members within a watched object whose type is a complex data object (such as a class, record, or array). These values display in the Watch List window when you expand a watched object. Additionally, you can expand the elements within an object, displaying its sub-elements and their values. You can expand all levels in the object. Members are grouped by ancestor.
To display expanded watch information in the Watch List window
- Set a breakpoint on a valid source line within your project. A breakpoint icon displays in the gutter next to the selected line.
- Choose RunAdd Watch to add a watch for an object in your application. The watch displays in the Watch List window.
- Choose RunRun to begin running the program. If needed, use the feature of the program that will cause it to run to the breakpoint you set. The IDE automatically switches to the Debug layout and the program stops at the breakpoint.
- Click the + next to the name of the object that you added to the watch list. The names and values of elements of the watched object display in the Watch List window.