Search code examples
azurevisual-studio-codeazure-functionsvscode-debuggerazure-functions-core-tools

Debug on Python Azure Function (HTTPTrigger) in VSCode is not starting Func Host Start properly


Question: enter image description here

All the dependencies like Python 3.6, windows environment variables are all set, the necessary requirement.txt was manually installed in my .env (my virtual environment), API client is installed,

Error: I get is as below h

My launch.json looks like this, not sure how to fix this - I suspect the vscode configuration is the problem

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Attach to Python Functions",
      "type": "python",
      "request": "attach",
      "port": 9091,
      "host": "localhost",
      "preLaunchTask": "runFunctionsHost"
    }
  ]
}

Any direction or help is appreciated.


Solution

  • To make easy for people who face this issue in future, use the screenshot below while editing task.json as mentioned by @PramodValavala-MSFT

    enter image description here screenshot of task.json