Skip to content

Support pyqt6 #1112

@Battleman

Description

@Battleman

Environment data

  • debugpy version: 1.5.1
  • OS and version: GNU/Linux Pop!_OS 22.04
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.9.13, Anaconda 22.9.0
  • Using VS Code or Visual Studio: VS Code (Codium) 1.72.2

Actual behavior

The debugger just "stops" after importing matplotlib, with no sign or crash or error. Just seems to be complete. See the screencast at the end.

Expected behavior

Debugging continues to the next line

Steps to reproduce:

  1. Create a conda environment with python 3.9
  2. Install matplotlib and PyQt6 through pip
  3. Install jupyter through conda
  4. Create a file, and import matplotlib (and anything on the next line)
  5. Put a breakpoint on the matplotlib import
  6. Debug the file
  7. When reaching the breakpoint, Step Over.

To make it easier, here are the minimal reproducible example I could generate:

conda create -y -n bug-report python=3.9
conda activate bug-report
pip install python-xlib matplotlib pyqt6 pillow
conda install -y jupyter

Open VS Code, create a file, enter the following content

import matplotlib.pyplot as plt # <-- put a breakpoint here
raise ValueError("I should get here")

Put the breakpoint, start debugging, step over.

Additional information

It seems removing either of matplotlib, jupyter or PyQt6 solves the problem.

Installing an older version of the Python extension (ms-python.python) also works. v2022.4.1 was the first that caused the issue, while the previous (previous according to VS Code) v2022.2.1924087327 still works.

I could capture the behavior in the following video:
screencast.webm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions