Skip to content

Commit

Permalink
Binds inspect to the same host the functions emulator is running on (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
collindever authored and samtstern committed Jan 6, 2020
1 parent 51523c0 commit 0357065
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/emulator/functionsEmulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 0357065

Please sign in to comment.