vscode-azureappservice icon indicating copy to clipboard operation
vscode-azureappservice copied to clipboard

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

Open takeshi4github opened this issue 1 year ago • 6 comments
trafficstars

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

takeshi4github avatar Mar 11 '24 04:03 takeshi4github

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!

motm32 avatar Mar 13 '24 17:03 motm32

@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 avatar Mar 19 '24 03:03 takeshi4github

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

takeshi4github avatar Mar 19 '24 09:03 takeshi4github

@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.

nturinski avatar Mar 20 '24 18:03 nturinski

@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

takeshi4github avatar Mar 21 '24 03:03 takeshi4github

@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.

nturinski avatar Apr 03 '24 17:04 nturinski

@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.

takeshi4github avatar Apr 11 '24 01:04 takeshi4github