debug: avoid listening on all interfaces when debugging a remote ext host

Fixes #142541
This commit is contained in:
Connor Peet
2022-02-08 10:26:17 -08:00
parent bd744189ff
commit 91f7694e68

View File

@@ -186,7 +186,7 @@ export class ExtensionHostConnection {
try {
let execArgv: string[] = [];
if (startParams.port && !(<any>process).pkg) {
execArgv = [`--inspect${startParams.break ? '-brk' : ''}=0.0.0.0:${startParams.port}`];
execArgv = [`--inspect${startParams.break ? '-brk' : ''}=${startParams.port}`];
}
const env = await buildUserEnvironment(startParams.env, startParams.language, !!startParams.debugId, this._environmentService, this._logService);