0

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

1
  • Following github.com/microsoft/vscode-azurefunctions/issues/4715 solved my issue Commented Oct 1 at 7:45

1 Answer 1

0

install azurite (npm install -g azurite)

run azurite in to other terminal (azurite)

open local.settings.json file and change ("AzureWebJobsStorage": "UseDevelopmentStorage=true")

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.