Skip to content

[Bug]: When Debugging test from VSCode the trace is not recorded #37965

@nlesniewski

Description

@nlesniewski

Version

v1.56.1

Steps to reproduce

Prerequisite:

  • init minimal project - npm init playwright@latest
  • VS Code & Plawright VS Code extension installed

Steps to reproduce:

In VS Code:

  • open minimal project
  • add breakpoint in has title test
  • open Testing tab
  • run Debug test on has title test
  • run Continue on breakpoint

Expected behavior

  • Trace Viewer is populated with new data during debugging
  • after test ends Trace Viewer displays whole trace

Actual behavior

  • Trace Viewer is not populated with new data (actions, log's, network call's etc.) during debugging
Image
  • after test ends Trace Viewer displays Loading Playwright Trace... message
Image

Additional context

When tests are run with Run Test option Trace Viewer displays trace after run.

Additional env info:

VS Code info:

Version: 1.105.1 (Universal)
Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084
Date: 2025-10-14T22:33:36.618Z
Electron: 37.6.0
ElectronBuildId: 12502201
Chromium: 138.0.7204.251
Node.js: 22.19.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.0.0

VS Code PW extension:

Name: Playwright Test for VSCode
Id: ms-playwright.playwright
Description: Run Playwright Test tests in Visual Studio Code.
Version: 1.1.16
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-playwright.playwright

Environment

System:
    OS: macOS 26.0.1
    CPU: (8) arm64 Apple M2
    Memory: 4.84 GB / 16.00 GB
  Binaries:
    Node: 24.10.0 - /opt/homebrew/bin/node
    npm: 11.6.0 - /opt/homebrew/bin/npm
  IDEs:
    VSCode: 1.105.1 - /usr/local/bin/code
  Languages:
    Bash: 3.2.57 - /bin/bash
  npmPackages:
    @playwright/test: ^1.56.1 => 1.56.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions