Skip to content

cannot debug multiple Firebase functions codebases #6817

Closed
@noopole

Description

@noopole

[REQUIRED] Environment info

firebase-tools: 13.3.1 (and all previous versions after 12)

Platform: macOS, Windows, Ubuntu

[REQUIRED] Test case

Create a Firebase project with Cloud functions defined within 2 codebases.
The emulator running in debug mode cannot attach the debbuger with the second codebase runtime because it is already used by the first codebase runtime.

[REQUIRED] Steps to reproduce

  1. Create a project with 2 codebases
  2. Run the Firebase functions emulator with --inspect-functions
  3. Read the error in the console:

Starting inspector on 127.0.0.1:9229 failed: address already in use

[REQUIRED] Expected behavior

Debbugger should work with all codebase runtimes, as for the first one:

Debugger listening on ws://127.0.0.1:[port]/[uuid]

[REQUIRED] Actual behavior

Debugger failed to start.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions