-
Notifications
You must be signed in to change notification settings - Fork 182
Closed
Labels
Description
Environment data
- debugpy version: 1.5.1
- OS and version: Windows 10 Pro 21H2 (64-bit) 10.0.19044
- Python version (& distribution if applicable, e.g. Anaconda): 3.9.4
- matplotlib
Name Version Build Channel
matplotlib 3.4.2 pypi_0 pypi
matplotlib-base 3.5.1 py39h581301d_0 conda-forge
matplotlib-inline 0.1.3 pyhd8ed1ab_0 conda-forge
The matplotlib settings are:
backend QtAgg
interactive True
non interactive False
- Using VS Code or Visual Studio: 1.64.2
Actual behavior
I would like to be able to debug python scripts that use matplotlib interactively. By interactively I mean placing a break point and watching my figure update as I actually step through my code.
Expected behavior
The figure does not update when stepping through code.
Steps to reproduce:
- Create a python script test.py with the following code:
import matplotlib.pyplot as plt
figure = plt.figure()
ax = plt.gca()
ax.plot([1,2,3])
ax.set_title("hello")
plt.show()
- Place a breakpoint on line 4 and then step through the following lines of code one by one.
- The figure appears blank and doesn't update.