You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/panes/debugging.rst
+13-23Lines changed: 13 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Debugger
5
5
**Debugging** in Spyder is supported through integration with the enhanced ``ipdb`` debugger in the :doc:`ipythonconsole`.
6
6
This allows breakpoints and the execution flow to be viewed and controlled right from the Spyder GUI, as well as with all the familiar IPython console commands.
:alt:A Spyder IPython console window, showing the ipdb debugger in action
10
10
11
11
@@ -16,41 +16,35 @@ Debugging with ipdb
16
16
17
17
You can fully control debugger execution from the :guilabel:`Debug` menu, :guilabel:`Debug toolbar` and via configurable keyboard shortcuts, along with the standard ``ipdb`` `console commands`_.
Spyder's debugger offers syntax highlighting, code completion and command history, which work exactly like they do in the normal interactive interpreter.
32
30
33
31
Use the up and down arrows to recall previous commands, and press :kbd:`Tab` to trigger autocomplete suggestions.
:alt:Spyder's console and variable explorer showing local and global variables when debugging
85
77
86
78
@@ -92,20 +84,20 @@ Advanced features
92
84
You can avoid stepping through other Python packages while debugging by enabling the new :guilabel:`Ignore Python libraries while debugging` option in Spyder's preferences, under :menuselection:`IPython Console --> Debugger --> Debug`.
93
85
This will skip all the built-in and third-party Python modules you have installed.
You can have Spyder automatically execute a custom snippet of code every time the debugger stops.
105
97
For example, you can use this to set specific variables, or import commonly-used modules so they are always available while debugging.
106
98
To set this up, go to :menuselection:`Preferences --> IPython Console --> Debugger --> Run code while debugging`, and enter the code that you want to be executed with each step.
Generating Matplotlib figures is fully supported while the debugger is active, including all the different graphics backends.
118
110
Use the ``%matplotlib`` magic to change to an interactive backend (e.g. ``%matplotlib qt5``) to pan, zoom and adjust your plots in a separate window, or switch back to the default ``inline`` (``%matplotlib inline``) to see them displayed right in the :doc:`plots` pane.
To avoid showing plots while debugging, deactivate the :guilabel:`Process execute events while debugging` option in :menuselection:`Preferences --> IPython console --> Debugger`.
0 commit comments