Using the Smart Data Window

Unlike the Data window which displays all arguments, local variables, and static fields for the current method, the Smart Data window displays only the data that appears to be relevant to the source code that you are stepping through. Specifically, the debugger analyzes the source code near the execution point Execution_Point_arrow and finds the variables, fields, and expressions, that are used in the lines of code that you are stepping through.

By default, the debugger analyzes only one line of code for each location and analyzes up to two locations. You can adjust these settings in the Tools then choose Preferences - Debugger - Smart Data page which you can also access by right-clicking in the Smart Data window and choosing Settings from the context menu.

Create instance breakpoints from the context menu.

Note: For more information about this window including its context menu options, press F1 or click Help in the Smart Data window.

To open the Smart Window:

  1. Set a breakpoint in the Source Editor and start a debugging session.
  2. Click debug_icon Debug from the toolbar.
  3. When the debugger hits a breakpoint, select V iew then choose Debug Windowsthen choose Smart Data.


Related topics

Using the Debugger Windows
Setting Preferences for the Debugger Windows