We are using Python 3.9 along with Azure function in Macbook M1. But we are not able to test the code locally
The type and problem matcher line comes with a yellow wiggly line and I cannot start my Test case { "version": "2.0.0", "tasks": [ { "type": "func", "command": "host start", "problemMatcher": "$func-python-watch", "isBackground": true, "dependsOn": "pip install (functions)" }, {
This issue might occur due to the Azure function extension and debugger not getting attached or initiated while you're running your Function in MacOS.
Try re-installing the Azure Function extension like below:-
Upgrade the extension to Latest version by clicking on Uninstall > Install another version > select latest version like below:-
Or just uninstall the Azure function extension and install the Azure extension again. And restart your Visual studio
You can also configure debugger for your Function runtime language by clicking on Settings button beside uninstall > Extension Settings > And enable the debugger for your runtime like below:-
My launch.json:-
My task.json:-
Along with your azure function VS code extension make sure you have Azure function Core tools installed for your MacOS, You can download the Function core tool by from this link.
After installing the Azure function core tools, You can create your azure function app in VS code and run the command below:-
This will start your function app with debugger and run the trigger like below:-
Alternatively you can also directly click on Run at the top of your VS code and Start debugging to start your Function app.
And then run it locally with
func startorfunc host startcommand.Additionally,