mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: remove 'npx playwright debug' (#33987)
This commit is contained in:
parent
38758c0596
commit
16a1552e74
@ -31,7 +31,6 @@ import type { Browser } from '../client/browser';
|
|||||||
import type { Page } from '../client/page';
|
import type { Page } from '../client/page';
|
||||||
import type { BrowserType } from '../client/browserType';
|
import type { BrowserType } from '../client/browserType';
|
||||||
import type { BrowserContextOptions, LaunchOptions } from '../client/types';
|
import type { BrowserContextOptions, LaunchOptions } from '../client/types';
|
||||||
import { spawn } from 'child_process';
|
|
||||||
import { wrapInASCIIBox, isLikelyNpxGlobal, assert, gracefullyProcessExitDoNotHang, getPackageManagerExecCommand } from '../utils';
|
import { wrapInASCIIBox, isLikelyNpxGlobal, assert, gracefullyProcessExitDoNotHang, getPackageManagerExecCommand } from '../utils';
|
||||||
import type { Executable } from '../server';
|
import type { Executable } from '../server';
|
||||||
import { registry, writeDockerVersion } from '../server';
|
import { registry, writeDockerVersion } from '../server';
|
||||||
@ -77,21 +76,6 @@ Examples:
|
|||||||
$ codegen --target=python
|
$ codegen --target=python
|
||||||
$ codegen -b webkit https://example.com`);
|
$ 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() {
|
function suggestedBrowsersToInstall() {
|
||||||
return registry.executables().filter(e => e.installType !== 'none' && e.type !== 'tool').map(e => e.name).join(', ');
|
return registry.executables().filter(e => e.installType !== 'none' && e.type !== 'tool').map(e => e.name).join(', ');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user