Azure / Azure/Azure-Functions

Cannot debug Python Azure Functions in Vs Code

Open
#2,632 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

**Vs Code version**
`Version: 1.104.2 (Universal)
Commit: e3a5acfb517a443235981655413d566533107e92
Date: 2025-09-24T11:21:37.073Z (1 wk ago)
Electron: 37.3.1
ElectronBuildId: 12404162
Chromium: 138.0.7204.235
Node.js: 22.18.0
V8: 13.8.258.31-electron.0
OS: Darwin arm64 25.0.0`

** Func version **

`4.2.2 `

** Vs Code Extension Version **

`Identifier
ms-azuretools.vscode-azurefunctions
Version
1.19.1
Last Updated
2025-09-29, 09:33:26`

What happens ?

I have been debugging Python Azure Functions for more than 2 years. Yesterday (1.Oct.2025) I noticed that debugger does not work anymore.

I press F5, the function starts succesfully, but then the debugger complains with: 'connect ECONNREFUSED 127.0.0.1:9091'

My lauch.json looks like

```json
{
"version": "2.0.0",
"configurations": [
{
"name": "Attach to Python Functions",
"type": "debugpy",
"request": "attach",
"connect": {
"host": "localhost",
"port": 9091
},
"preLaunchTask": "func: host start"
}
]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.