From VS Code integrated terminal I run firebase serve --only functions,hosting
then in the debug tab I created the default launch.json:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${file}"
}
]
}
I want to debug the server side (functions/index.js) not the client side.
I've tried some configuration from https://code.visualstudio.com/docs/nodejs/nodejs-debugging with no luck.
How to debug Firebase functions in VS Code?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…