microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
291 stars 132 forks source link

Remote debugging of Python function apps #3630

Open felihong opened 1 year ago

felihong commented 1 year ago

Hi there,

is it possible to remotely debug a Python function app (premium or dedicated plan) in VS Code?

In Azure portal I was able to enable remote debugging of my as shown below: Screenshot 2023-03-15 at 09 50 00

When I try to start remote debugging using VS Code Azure functions extension (v1.10.4), I got an error that

Azure remote debugging is currently on supported for Node.js Function Apps running on Linux App Service plans. Consumption plans are not supported

Could you please confirm this and kindly give a hint whether there's any workarounds? Thank you!

alexweininger commented 1 year ago

We don't currently support remote debugging a Python function app. @MicroFish91 can you investigate this to see if we can add support?

FaresKi commented 1 year ago

I agree that this would be super helpful. I know there's an integrated debugging feature of .NET apps and Visual Studio, but for us VSCoders and Python folks, the possibility to remote debug would be super helpful.

reynajavar commented 1 month ago

Is this feature request still under investigation?

Abdulaziz-eblacorp commented 3 weeks ago

@MicroFish91 is this feature added 👀? if yes, where i can find it's docs ?

nturinski commented 1 day ago

Hi everyone, just wanted to give a small update.

I tried simply allowing the extension to try remote debugging a Python function app. While it was trying to create the tunnel proxy, there was no tunnel state returned.

I'm not sure if it's an error on the extension's end or if the service simply doesn't allow remote debugging for Python, but it's a little more complicated than me just turning it on for Python 😞

I'll keep investigating, but if anyone has any documentation for remote debugging on a Python function app, I'd appreciate it if you could share it with me.