firebase / firebase/firebase-tools
--inspect-functions breaks when emulating extensions
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 84
Description
### [REQUIRED] Environment info
**firebase-tools: 11.21.0**
**Platform: Windows 10 Pro (WSL2)**
### [REQUIRED] Test case
run `firebase emulators:exec --inspect-functions --ui 'npm start'`
### [REQUIRED] Steps to reproduce
* create a firebase project with functions
* create a `firebase.json` with `extensions` and `functions`:
```
{
"functions": [
{
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run build"
],
"source": "functions",
"codebase": "default",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log"
]
}
],
"emulators": {
"singleProjectMode": true,
"functions": {
"port": 5001
},
"storage": {
"port": 9199
},
"ui": {
"enabled": true
}
},
"storage": {
"rules": "storage.rules"
},
"extensions": {
"storage-resize-images": "firebase/storage-resize-images@0.1.33"
}
}
```
* run `npm --prefix \"functions\" run build:watch` to build the functions
* run `firebase emulators:exec --inspect-functions --ui 'npm start'`
### [REQUIRED] Expected behavior
* --inspect-functions should attach to port 9229 on the functions and not the extensions
### [REQUIRED] Actual behavior
* --inspect-functions attaches to port 9229 on the extensions and not the functions
Contributor guide
Assessment
This issue has not been assessed yet.