Home > Enterprise >  Debug not working in Visual Studio Code for Func App with Python
Debug not working in Visual Studio Code for Func App with Python

Time:07-25

I am testing the VS Code's built-in HttpTrigger in Win 10, which is working, but the debugging is not working (breakpoints are not paused).

Below is the logging when starting Run -> Start Debugging.

connect econnrefused 127.0.0.1:9091

enter image description here

It processes the request successfully, but no breakpoints are paused.

Executing task: .venv\Scripts\python -m pip install -r requirements.txt <

Requirement already satisfied: azure-functions in c:.me\mylab.code\azurecode\functions\funcpython\app.venv\lib\site-packages (from -r requirements.txt (line 5)) (1.11.2)

Terminal will be reused by tasks, press any key to close it.

Executing task: func host start <

Found Python version 3.9.13 (py).

Azure Functions Core Tools Core Tools Version: 3.0.3904 Commit hash: c345f7140a8f968c5dbc621f8a8374d8e3234206 (64-bit) Function Runtime Version: 3.3.1.0

Functions:

    HttpTrigger1: [GET,POST] http://localhost:7071/api/HttpTrigger1

For detailed output, run func with --verbose flag. info: Microsoft.AspNetCore.Hosting.Diagnosticsenter image description here

  • Related