Skip to content

Instantly share code, notes, and snippets.

@abdulwahidgul24085
Last active January 26, 2021 14:24
Show Gist options
  • Save abdulwahidgul24085/9b94fe6740cd5d2ca25d2cf6b4cccc7e to your computer and use it in GitHub Desktop.
Save abdulwahidgul24085/9b94fe6740cd5d2ca25d2cf6b4cccc7e to your computer and use it in GitHub Desktop.
Attach Vscode Debug to Firebase functions
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