Skip to content

Commit

Permalink
Fix bug where --inspect-functions flag always fails. (#5516)
Browse files Browse the repository at this point in the history
Fixes #5509
  • Loading branch information
taeold authored Feb 14, 2023
1 parent 50340fc commit dc3e7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug where --inspect-functions flag always fails. #5516
2 changes: 1 addition & 1 deletion src/emulator/functionsEmulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ export class FunctionsEmulator implements EmulatorInstance {
// In debug mode, we eagerly start the runtime processes to allow debuggers to attach
// before invoking a function.
if (this.args.debugPort) {
if (!emulatableBackend.bin?.startsWith("node")) {
if (!emulatableBackend.runtime?.startsWith("node")) {
this.logger.log("WARN", "--inspect-functions only supported for Node.js runtimes.");
} else {
// Since we're about to start a runtime to be shared by all the functions in this codebase,
Expand Down

0 comments on commit dc3e7b7

Please sign in to comment.