Currently debugpy checks if matplotlib is imported and runs its event loop if possible. This functionality can be useful for other libraries with their own event loop too.
For example, a 3D rendering library can register a inputhook and render one frame when called. This makes it possible to interactivly debug 3D rendering applications(games, scientific visualizations, etc.) with debugpy, specifically, in VS Code.
Very curious to hear your opinion about this.