microsoft / vscode-azureappservice

Azure App Service extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureappservice
MIT License
111 stars 94 forks source link

Azure Remote Debugging is currently only supported for Node.js apps on Linux. #2627

Closed takeshi4github closed 3 months ago

takeshi4github commented 6 months ago

I would like to attach and debug a python web application (streamlit) deployed on Azure App Service using vscode. I selected the app I want to debug, right-clicked it and selected "Start Remote Debugging", but it says "Azure Remote Debugging is currently only supported for Node.js apps on Linux." and I can't debug it. Is it not possible to attach and debug a python web application deployed on Azure App Service using vscode? Thank you for your cooperation. Visual Studio Code version: 1.87.1

motm32 commented 5 months ago

Hi! Could you try pressing F1 and searching Preferences: Open User Settings and then turn this setting on: image Please let us know if that doesn't work!

takeshi4github commented 5 months ago

@motm32 Thank you for confirmation. I turned on "Enable Python Remote Debugging" in VSCode settings. Thanks to you, the first error has been resolved. However, when I right-clicked on the App Service to be debugged and pressed "Start Remote Debugging", another error occurred. The error message is "Unable to establish connection to application: Timed out". Please let me know the possible causes and solutions. Thank you for your cooperation. image

takeshi4github commented 5 months ago

By the way, if I disabled "Remote Debug" and pressed "SSH into Web App", I was able to connect via SSH from vscode.

nturinski commented 5 months ago

@takeshi4github

When you try to start remote debugging, do you get a prompt to ask you to enable remote debugging? I know that it uses a different port to tunnel than SSH, which we have to change the app configuration in order to enable.

takeshi4github commented 5 months ago

@nturinski Thank you for your confirmation and reply.

When you try to start remote debugging, do you get a prompt to ask you to enable remote debugging?

No.

we have to change the app configuration in order to enable.

Remote Debugging is already turned on in the configuration. image

nturinski commented 5 months ago

@takeshi4github Do you know if the app is running successfully? Are you able to ping or browse to it? I'm not sure why it would time out when you try to remote debug otherwise.

takeshi4github commented 5 months ago

@nturinski

Do you know if the app is running successfully? Are you able to ping or browse to it?

Yes, I do. My web application is running successfully. I can access my web application through MS Edge.

nturinski commented 4 months ago

@takeshi4github

Hi, I just wanted to follow up with you on this issue.

Is it still unable to connect? I don't know if there's anything that the extension can do specifically. I'm hoping it was just a temporary service side issue 🤞

AzCode-Bot commented 3 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!