Fix --prof-startup never being able to profile renderer/extension host (#307849)

* Pass only the port to --remote-debugging-port and --inspect-brk-extensions

* Also remove host from --inspect-brk
This commit is contained in:
Winston Liu
2026-04-11 02:56:27 +09:00
committed by GitHub
parent 46933de594
commit 72cfebb6ff
+3 -3
View File
@@ -385,9 +385,9 @@ export async function main(argv: string[]): Promise<void> {
const filenamePrefix = randomPath(homedir(), 'prof');
addArg(argv, `--inspect-brk=${profileHost}:${portMain}`);
addArg(argv, `--remote-debugging-port=${profileHost}:${portRenderer}`);
addArg(argv, `--inspect-brk-extensions=${profileHost}:${portExthost}`);
addArg(argv, `--inspect-brk=${portMain}`);
addArg(argv, `--remote-debugging-port=${portRenderer}`);
addArg(argv, `--inspect-brk-extensions=${portExthost}`);
addArg(argv, `--prof-startup-prefix`, filenamePrefix);
addArg(argv, `--no-cached-data`);