Wing can also debug code that is executed in the Python Shell (and in Wing Pro's Debug Probe). This is done by clicking on the bug icon in the top right of the shell. When debug is enabled in the shell, an additional column is displayed in which breakpoints can be set and code will be debugged so that breakpoints are reached and exceptions are presented in Wing's debugger. The bug icon can be clicked again to disable debugging.

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 for details.