Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: remove 'npx playwright debug' (#33987)

Max Schmitt16a1552e7490
diff --git a/packages/playwright-core/src/cli/program.ts b/packages/playwright-core/src/cli/program.ts
index 7d0659d26f..50a69dc9ea 100644
--- a/packages/playwright-core/src/cli/program.ts
+++ b/packages/playwright-core/src/cli/program.ts
@@ -31,7 +31,6 @@ import type { Browser } from '../client/browser';
import type { Page } from '../client/page';
import type { BrowserType } from '../client/browserType';
import type { BrowserContextOptions, LaunchOptions } from '../client/types';
-import { spawn } from 'child_process';
import { wrapInASCIIBox, isLikelyNpxGlobal, assert, gracefullyProcessExitDoNotHang, getPackageManagerExecCommand } from '../utils';
import type { Executable } from '../server';
import { registry, writeDockerVersion } from '../server';
@@ -77,21 +76,6 @@ Examples:
$ codegen --target=python
$ codegen -b webkit https://example.com`);
-program
- .command('debug <app> [args...]', { hidden: true })
- .description('run command in debug mode: disable timeout, open inspector')
- .allowUnknownOption(true)
- .action(function(app, options) {
- spawn(app, options, {
- env: { ...process.env, PWDEBUG: '1' },
- stdio: 'inherit'
- });
- }).addHelpText('afterAll', `
-Examples:
-
- $ debug node test.js
- $ debug npm run test`);
-
function suggestedBrowsersToInstall() {
return registry.executables().filter(e => e.installType !== 'none' && e.type !== 'tool').map(e => e.name).join(', ');
}