Playwright: [Question] how to use DEBUG=pw:api?

Created on 15 Jun 2020  路  4Comments  路  Source: microsoft/playwright

Hi Team,

Sorry, but i could not find in docs how to use DEBUG=pw:api.

How can i run script with the DEBUG=pw:api? (pls give me example)

is it possible to save output in File?

tnx a lot

Most helpful comment

@arjun27 let's add this to https://playwright.dev/#version=v1.1.1&path=docs%2Fintro.md&q=debugging-scripts

All 4 comments

# Windows..
set DEBUG=pw:api
node test.js

# MacOS, Linux
DEBUG=pw:api node test.js

@arjun27 let's add this to https://playwright.dev/#version=v1.1.1&path=docs%2Fintro.md&q=debugging-scripts

Please feel free to reopen if there are more questions / requests.

Actually, it will close with the docs.

Was this page helpful?
0 / 5 - 0 ratings