question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

debugging doesn't work

See original GitHub issue

when attempting to debug, it just outputs this to the debug console and does nothing:

image image

main.spec.ts

import { expect, test } from '@playwright/test'

test('basic test', async ({ page }) => {
    await page.goto('https://google.com/')
    const title = page.locator('.navbar__inner .navbar__title')
    await expect(title).toHaveText('Playwright')
})

playwright.config.ts

import { PlaywrightTestConfig } from '@playwright/test'

const config: PlaywrightTestConfig = {
    projects: [
        {
            name: 'Chrome Stable',
            use: {
                browserName: 'chromium',
                // Test against Chrome Stable channel.
                channel: 'chrome',
            },
        },
    ],
}
export default config

playwright test output

2021-09-21T05:07:05.236Z Executing command: node_modules\@playwright\test\lib\cli\cli.js test --retries=0 --reporter=json --list \. 
2021-09-21T05:07:10.458Z Creating test controller: Playwright TestChrome Stable 
2021-09-21T05:07:10.459Z Executing command: node_modules\@playwright\test\lib\cli\cli.js test --retries=0 --project=Chrome Stable --reporter=json --list c:\\Users\\user\\playwright-demo\\tests\\main\.spec\.ts 
2021-09-21T05:07:12.926Z TestFile._updateFromDisk default and Chrome Stable 
2021-09-21T05:07:23.871Z Running test basic test [Chrome Stable] debug=true 

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
mxschmittcommented, Feb 4, 2022

In the new version which gets released in 1-2 weeks we reworked this fully. This is then working as expected.

3reactions
devzerkercommented, Oct 26, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

visual studio - Why the debugger doesn't work - Stack Overflow
15 Answers 15 · Delete ASP.NET temporary files from C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files · Change build configuration to debug ...
Read more >
Troubleshoot Breakpoints in the Visual Studio Debugger
If a source file has changed and the source no longer matches the code you're debugging, the debugger won't set breakpoints in the...
Read more >
Visual Studio Community 2017 Debugger not working correctly
Most of my program is working, but the debugging does not seem to be working like it should or does when you create...
Read more >
What to do if debugger doesn't work as expected?
What to do if debugger doesn't work as expected? Follow · go to Help | Diagnostic Tools | Debug Log Settings · add...
Read more >
BreakPoints Are Not Working in Visual Studio - C# Corner
Ensure that debug configuration, debug flag and full debug info are set on all assemblies. · Delete all bin and obj folders and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found