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

Fix and enable remote debugging for Python on Linux

Open tonybaloney opened this issue 4 years ago • 5 comments
trafficstars

I tried to do Start Remote Debug for a deployed Python application on Linux Web Apps. VS Code presented an error (from https://github.com/microsoft/vscode-azureappservice/blob/main/src/commands/remoteDebug/getRemoteDebugLanguage.ts#L45-L49 ) that only node.js is supported. After looking at the source, I noticed this feature toggle enablePythonRemoteDebugging and enabled that. The feature toggle is off by default and doesn't look like it's been changed in a year.

After enabling the toggle, I was able to start a debug session but not able to successfully set and fire a breakpoint.

Is this feature experimental/ready/not working?

tonybaloney avatar Jun 03 '21 22:06 tonybaloney

The feature is currently in preview - I'm pretty sure we kept it hidden under a feature flag because it was not working yet, but I haven't personally tried it in a while. We're tracking enabling it in this issue: https://github.com/microsoft/vscode-azureappservice/issues/1523. Part of the reason I know so little about it is that it was contributed to our extension by a partner team and a decent amount of the work is actually on the Azure side (which I don't think we have access to).

ejizba avatar Jun 07 '21 23:06 ejizba

The feature is currently in preview - I'm pretty sure we kept it hidden under a feature flag because it was not working yet, but I haven't personally tried it in a while. We're tracking enabling it in this issue: #1523. Part of the reason I know so little about it is that it was contributed to our extension by a partner team and a decent amount of the work is actually on the Azure side (which I don't think we have access to).

Thanks, I'll see if I can figure out where the gaps are on the backend.

tonybaloney avatar Jun 07 '21 23:06 tonybaloney

Related issue : https://github.com/microsoft/Oryx/issues/1035

tonybaloney avatar Jun 08 '21 22:06 tonybaloney

Still requires azure tools to be bumped and the version updated in this extension. @ejizba do you know what timeline thats on and when this extension will hit its next release candidate?

tonybaloney avatar Aug 19 '21 00:08 tonybaloney

If you want azure tools to be released, then bump the version and I can release it whenever. In terms of the next release of the extension, that will likely be late September

ejizba avatar Aug 19 '21 17:08 ejizba