Home > front end >  Debugging Python inside Docker with Visual Studio 2022
Debugging Python inside Docker with Visual Studio 2022

Time:07-26

VS Code can apparently debug Python code running on Docker.

Visual Studio 2022 can debug .NET code running on Docker ( https://docs.microsoft.com/en-us/visualstudio/containers/edit-and-refresh?view=vs-2022 ).

Is there a way to debug Python code running on Docker with Visual Studio 2022?

CodePudding user response:

The link you included states:

Supported project types include web app, console app, and Azure Function targeting .NET Framework and .NET Core.

Since Python doesn't meet these requirements, I don't think it is possible. In addition, one of the first steps you must do when creating the project is to enable Docker, which isn't even an option for a Python project, further leading me to believe its not possible.

It seems that Visual Studio Code appears to be able to do this.

  • Related