I'm using VS Code on Windows 11, to debug my Python Azure Functions locally
When running the debugger I am prompted with the following (https://i.sstatic.net/4a65Y85L.png)
When I select the option,'Run Emulator' everything runs smoothly until the following error pops-up.(https://i.sstatic.net/Um5aDfNE.png) (Never seen this before)
At this point I can ignore the error and continue/execute my API. The code runs, but it does not stop at any of my breakpoints.
Another opservation: The debugger starts but it does not show the usual debug toolbar start/stop/continue/pause debugging actions.
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "myproject",
"type": "debugpy",
"request": "attach",
"connect": {
"port": 9091,
},
"preLaunchTask": "func: host start",
"justMyCode": false
}
]
}
host.json uses the extensionBundle version "[4.0.0, 5.0.0)"
local.settings.json
{
"IsEncrypted": false,
"Values": {
"FUNCTIONS_WORKER_RUNTIME": "python",
"LOCAL_PORT": 7071,
"AzureWebJobsStorage": "UseDevelopmentStorage=true"
}
}
Azure Function Core Tools version : 4.2.2