firebase-tools
firebase-tools copied to clipboard
cannot debug multiple Firebase functions codebases
[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
- Create a project with 2 codebases
- Run the Firebase functions emulator with
--inspect-functions
- 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.
Solved here https://stackoverflow.com/a/77672524/4600982 with just 2 line changes
This feature has been added in a recent version of firebase-tools