Skip to content

[BUG] page.pause doesn't work when running from the vscode extension #17059

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

Closed
DetachHead opened this issue Sep 3, 2022 · 1 comment
Closed

Comments

@DetachHead
Copy link
Contributor

Context:

  • Playwright Version: 1.25.1
  • Operating System: windows 10
  • Node.js version: 16.11.1
  • Visual Studio Code version: 1.70.1
  • Playwright for VSCode extension version: 0.2.10
  • Browser: all

Code Snippet

test('asdf', async ({ page }) => {
    await page.goto('https://google.com')
    await page.pause()
})

Describe the bug

page.pause does not open the inspector when running tests with the vscode extension.

when clicking "Debug Test", it doesn't pause at all

when clicking "Run Test". it pauses on page.pause, but since there's no inspector there's no way to resume:

image

@pavelfeldman
Copy link
Member

We allow one debugger at a time, when using VS Code, you should use regular JS debugger w/ debugger; statement and breakpoints instead!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants