From 03570650903b56659d8ffcf0c60eb847ddc25a8b Mon Sep 17 00:00:00 2001 From: Collin Dever Date: Mon, 6 Jan 2020 09:49:08 -0800 Subject: [PATCH] Binds inspect to the same host the functions emulator is running on (#1898) --- src/emulator/functionsEmulator.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emulator/functionsEmulator.ts b/src/emulator/functionsEmulator.ts index c16b71c6827..247e43c1465 100644 --- a/src/emulator/functionsEmulator.ts +++ b/src/emulator/functionsEmulator.ts @@ -593,7 +593,8 @@ export class FunctionsEmulator implements EmulatorInstance { } if (this.args.debugPort) { - args.unshift(`--inspect=${this.args.debugPort}`); + const { host } = this.getInfo(); + args.unshift(`--inspect=${host}:${this.args.debugPort}`); } const childProcess = spawn(opts.nodeBinary, args, {