Skip to content

Commit 3973091

Browse files
authored
fix: skip internal Playwright internals during debugging (#545)
1 parent 8f8b1df commit 3973091

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/playwrightTestCLI.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ export class PlaywrightTestCLI {
197197
name: debugSessionName,
198198
request: 'launch',
199199
cwd: configFolder,
200+
skipFiles: ['<node_internals>/**', '**/node_modules/playwright/**', '**/node_modules/playwright-core/**'],
200201
env: {
201202
...process.env,
202203
CI: this._options.isUnderTest ? undefined : process.env.CI,

src/playwrightTestServer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ export class PlaywrightTestServer {
271271
name: debugSessionName,
272272
request: 'launch',
273273
cwd: paths.cwd,
274+
skipFiles: ['<node_internals>/**', '**/node_modules/playwright/**', '**/node_modules/playwright-core/**'],
274275
env: {
275276
...process.env,
276277
CI: this._options.isUnderTest ? undefined : process.env.CI,

0 commit comments

Comments
 (0)