Skip to content

The tracing function is not working properly #230

@l3yx

Description

@l3yx

The tracing function does not generate trace files. The following verification confirms this:

╭─leixiao at 淚笑的MacBook Air in /tmp/test 26-02-03 - 23:21:12
╰─○ playwright-cli --session=example tracing-start --headed
<!-- Daemon for `example` session started with pid 81545.
- You can stop the session daemon with `playwright-cli session-stop "example"` when done.
- You can delete the session data with `playwright-cli session-delete "example"` when done.
-->
### Result
Trace recording started
- [Action log](.playwright-cli/traces/trace-1770132078332.trace)
- [Network log](.playwright-cli/traces/trace-1770132078332.network)
- [Resources](.playwright-cli/traces/resources)
### Page
- Page URL: about:blank
╭─leixiao at 淚笑的MacBook Air in /tmp/test 26-02-03 - 23:21:18
╰─○ playwright-cli --session=example open https://example.com
### Ran Playwright code
\`\`\`js
await page.goto('https://example.com');
\`\`\`
### Page
- Page URL: https://example.com/
- Page Title: Example Domain
### Snapshot
- [Snapshot](.playwright-cli/page-2026-02-03T15-21-24-285Z.yml)
╭─leixiao at 淚笑的MacBook Air in /tmp/test 26-02-03 - 23:21:24
╰─○ playwright-cli --session=example tracing-stop
### Result
Trace recording stopped.
- [Trace](.playwright-cli/traces/trace-1770132078332.trace)
- [Network log](.playwright-cli/traces/trace-1770132078332.network)
- [Resources](.playwright-cli/traces/resources)
### Events
- 1 new console entry in ".playwright-cli/console-2026-02-03T15-21-23-106Z.log#L1"
╭─leixiao at 淚笑的MacBook Air in /tmp/test 26-02-03 - 23:21:27
╰─○ ,s -alth .playwright-cli|grep traces
zsh: command not found: ,s
╭─leixiao at 淚笑的MacBook Air in /tmp/test 26-02-03 - 23:21:48
╰─○ ls -alth .playwright-cli|grep traces
╭─leixiao at 淚笑的MacBook Air in /tmp/test 26-02-03 - 23:21:51
╰─○

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions