The option "Python/Native Debugging" is missing from the list of avialable debuggers even though python native development tools are installed

Володимир Кравчук 6 Reputation points
2022-05-23T10:37:26.903+00:00

Im using VS 2022 Community Edition on Windows 10. When i check all boxes in Python development under Visual Studio Installer there is nothing to modify. So i guess everything is installed. But there is no option for "Python/Native" debugger in project settings. Just a couple days ago everything worked fine on VS2019. I had to clean install Windows and decided to migrate to VS2022. I've already tried repairing VS. That did not help

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,004 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,321 Reputation points Microsoft Vendor
    2022-05-24T06:27:46.76+00:00

    Hi @Володимир Кравчук ,

    Welcome to Microsoft Q&A forum.

    After doing some check and test, I think this may be a potential issue, as some Python and Debugging related files are not installed in the correct folder.

    I suggest you try following workaround currently:

    Go to C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Microsoft\VC\v170\Platforms\x64\ImportAfter folder and check if Microsoft.PythonTools.Debugger.VCDebugLauncher.targets and Microsoft.PythonTools.Debugger.VCDebugLauncher.xaml files exist. If they don’t exist, please navigate to C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Microsoft\VC\v160\Platforms\x64\ImportAfter folder, find and copy the existing one or two of them to the previous C:\Program Files\Microsoft Visual Studio\2022\Community\Msbuild\Microsoft\VC\v170\Platforms\x64\ImportAfter folder. Then close all VS instances and open VS again to check if the Python/Native Debugging option appears.

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    2 people found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.