4

I'm using the emulator to run cloud functions with Python. I'd like to attach a debugger using VS Code. This is easy when using Node, I just need to pass the --inspect-functions flag in when starting the emulator:

firebase emulators:start --project demo-project --inspect-functions

Here is my vscode launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "attach",
      "name": "Firebase Cloud Functions",
      "port": 9229
    }
  ]
}

Now clicking F5 is vscode will attach the debugger.

When running Python functions, I get this warning in emulator logs:

functions --inspect-functions only supported for Node.js runtimes.
functions --inspect-functions not supported for Python functions. Ignored.

How do I attach the debugger to Python cloud functions with Firebase?

2

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.