<type>wingtip</type>
<domain>intro</domain>
<id>debug-shells</id>
~~~if WINGPRO:
<title>Debugging Code from the Python Shell and Debug Console</title>
~~~
~~~if not WINGPRO:
<title>Debugging Code from the Python Shell</title>
~~~
<date>$Date: 2004-06-22 23:31:47 -0400 (Tue, 22 Jun 2004) $</date>
<version>$Revision: 8861 $</version>
<product>all</product>

~~PRODUCT_NAME~~ can debug code that is executed in the 
~~~if WINGPRO:
``Python Shell`` and ``Debug Console``
~~~
~~~if not WINGPRO:
``Python Shell``.
~~~
This is done by clicking on the bug icon in the top right of the shell. While debugging is
enabled, an additional breakpoints column is displayed and any exceptions are reported in
Wing's debugger. The bug icon can be clicked again to disable debugging.

~~~if WINGPRO:
By default Wing Pro allows one level of debugging from the shell, so that the shell prompt is
only reached again after debug is run to completion or canceled. To enable recursive
debugging to any depth, check ``Enable Recursive Prompt`` in the shell's ``Options`` menu.
~~~

See `Debugging Code in the Python Shell <ref:debug/shell-debugging>`__ for details.
