Last active
April 21, 2025 18:09
-
-
Save abdulwahidgul24085/9b94fe6740cd5d2ca25d2cf6b4cccc7e to your computer and use it in GitHub Desktop.
Attach Vscode Debug to Firebase functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0. Create a launch.json file by with vscode using the Debugger. | |
1. install npm i -g firebase-tools. | |
2. Add the following json to .vscode/launch.json | |
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "attach", | |
"name": "Attach", | |
"port": 9229, | |
"restart": true, | |
"skipFiles": ["<node_internals>/**"] | |
} | |
] | |
} | |
3. run the emulator: firebase emulators:start --inspect-functions | |
4. Attach the debugger by clicking the play button. | |
5. Enjoy 😀. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment