Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pytest debugger isn't compatible with vscode+playwright #1355

Open
ManiMozaffar opened this issue Aug 15, 2023 · 0 comments
Open

Pytest debugger isn't compatible with vscode+playwright #1355

ManiMozaffar opened this issue Aug 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ManiMozaffar
Copy link

Before creating a new issue, please check the FAQ to see if your question is answered there.

Environment data

  • debugpy version: lastest version
  • OS and version: MacOS Ventura 13.3
  • Python version (& distribution if applicable, e.g. Anaconda): 3.11 3.10 (basically all versions i tested with)
  • Using VS Code or Visual Studio: VS Code

Actual behavior

When debugging test in async written with combo of pytest and playwright, the command line isn't responsible for any actions performed by browser, it stuck afterward(deadlock). However using pdb debugger, it works but the problem is pdb debugger also doesn't have good UX and doesn't suuport async natively.

Expected behavior

no deadlock when using terminal in debugging

Steps to reproduce:

  1. pip install playwright pytest pytest-asyncio
  2. Put [BUG] Debugger fails with pytest playwright-python#2031 (comment) into a test_foo.py
  3. Set a breakpoint at the await page.goto("https://www.example.com") line
  4. Debug the test from VSCode
  5. Evaluate await page.goto("https://example.com")
@int19h int19h added the bug Something isn't working label Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants