Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug where --inspect-functions flag always fails. #5516

Merged
merged 3 commits into from
Feb 14, 2023

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Feb 14, 2023

Fixes #5509

@@ -690,7 +690,8 @@ 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")) {
console.log(emulatableBackend.bin);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean up the console.log (or switch to logger.debug if we need this info)

Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after you remove the console.log

@taeold taeold enabled auto-merge (squash) February 14, 2023 18:03
@codecov-commenter
Copy link

codecov-commenter commented Feb 14, 2023

Codecov Report

Base: 56.15% // Head: 56.15% // No change to project coverage 👍

Coverage data is based on head (f743ca4) compared to base (50340fc).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5516   +/-   ##
=======================================
  Coverage   56.15%   56.15%           
=======================================
  Files         317      317           
  Lines       21494    21494           
  Branches     4385     4385           
=======================================
  Hits        12071    12071           
  Misses       8361     8361           
  Partials     1062     1062           
Impacted Files Coverage Δ
src/emulator/functionsEmulator.ts 8.12% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@taeold taeold merged commit dc3e7b7 into master Feb 14, 2023
@taeold taeold deleted the dl-fn-emulator-inspect-bug branch February 14, 2023 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants