Skip to content

Commit 0357065

Browse files
collindeversamtstern
authored andcommitted
Binds inspect to the same host the functions emulator is running on (#1898)
1 parent 51523c0 commit 0357065

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/emulator/functionsEmulator.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ export class FunctionsEmulator implements EmulatorInstance {
593593
}
594594

595595
if (this.args.debugPort) {
596-
args.unshift(`--inspect=${this.args.debugPort}`);
596+
const { host } = this.getInfo();
597+
args.unshift(`--inspect=${host}:${this.args.debugPort}`);
597598
}
598599

599600
const childProcess = spawn(opts.nodeBinary, args, {

0 commit comments

Comments
 (0)