<type>documentation</type>
<domain>debug</domain>
<id>viewing-data</id>
<title>Viewing Debug Data</title>
<date>$Date$</date>
<version>$Revision$</version>
<product>all</product>

~~~if WINGPRO:
Wing Pro's debugger provides many ways to inspect your debug program's data: 

(1) The `Stack Data <script:show_panel#panel_type="debug-data">`__ tool displays values in
    locals and globals for the currently selected stack frame.  The display includes
    an expandable tree of values, and array and textual views for individual values.
    See `Stack Data View <ref:debug/stack-data-view>`__ for details.
    
(2) The `Modules <script:show_panel#panel_type="debug-modules">`__ tool supports the same
    type of inspection for values in all loaded modules (as determined by ``sys.modules``).
    
(3) The `Watch <script:show_panel#panel_type="debug-watch">`__ tool can watch specific 
    values from either of the above views.  Right-click on values to watch them by symbolic
    name or object reference.  See `Watching Values <ref:debug/tracking-values>`__ for
    details.
    
(4) The ``Watch`` tool can also watch expressions typed into the tool.

(5) Hovering the mouse cursor over a symbol in the editor displays the value of that
    symbol in a tooltip, if it is in defined in the current stack frame. See `Viewing Data 
    on the Editor <ref:debug/editor-data>`__ for details.

(6) Holding down ``Shift-Space`` shows tooltips containing the values of all visible 
    names on the editor.  See `Viewing Data on the Editor <ref:debug/editor-data>`__ for 
    details.
    
(7) The `Debug Console <script:show-panel-debug-console>`__ can be used to interact with
    the current stack frame of the debug process, in order to inspect data with arbitrary
    Python code.  See `Interactive Debug Console <ref:debug/debug-console>`__
    for details.
~~~

~~~if not WINGPRO:
Wing allows you to inspect locals and globals using the `Stack Data
<script:show_panel#panel_type="debug-data">`__ tool. This area displays values for the
currently selected stack frame.
~~~

~~~if WEBSITE:
In Wing 101 and Wing Personal only the ``Stack Data`` tool is available.
~~~

Debug data displayed by Wing is fetched from the debug server on the fly as you navigate.
Because of this, you may experience a brief delay when a change in an expansion or stack
frame results in a large data transfer.

For the same reason, leaving large amounts of debug data visible on screen may slow down
stepping through code.
  
