![]() ![]() To make the source code for standard Python itself available when debugging, visit, download the archive appropriate for your version, and extract it to a folder. Symbols are automatically included if you install Python support through the Visual Studio installer (Visual Studio 2017 and later). ![]() You need to install symbols only once for any given Python environment. ![]() When you start debugging in mixed mode for the first time, you may see a Python Symbols Required dialog (see Symbols for mixed-mode debugging). For example, if a managed application hosts CPython, which in turn uses native extension modules, and you want to debug all three, you can check Python, Native, and Managed together for a unified debugging experience including combined call stacks and stepping between all three runtimes. It's possible to select other code types in addition to, or instead of, Native. The code type settings are persistent, so if you want to disable mixed-mode debugging when attaching to a different process later, clear the Python (native) code type and apply the Native code type. Then set the Debug these code types option and select Python (native) from the list: When attaching the mixed-mode debugger to an existing process ( Debug > Attach to Process), use the Select button to open the Select Code Type dialog. This argument puts the Python interpreter into interactive mode after the code finishes, at which point it waits for you to press Ctrl+ Z > Enter to exit. To force a pause, add the -i option to the Run > Interpreter Arguments field on the Debug tab when you enable native code debugging. When you enable native code debugging, the Python output window may disappear immediately when the program has completed without giving you the usual Press any key to continue pause. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |