primagerma.blogg.se

Debugging python in visual studio
Debugging python in visual studio













A configuration menu will open from the Command Palette allowing you to choose the type of debug. You should already have used make.bat to build blender before, in this section we'll use it to generate a Visual Studio project with the options enabled we need for debugging python. To generate a launch.json file with Python configurations, do the following steps: Click the create a launch.json file link (circled in the image above) or use the Run > Open configurations menu command. This is not enabled by default with Python Development Workload, but is required for the "Python/Native Debugger" option to show up later. Enable the "Python native development tools" individual component. '': '-init-hook', 'import sys ('/path/to/Functions')' OR ('/path/to/parent') option 1from Functions import functions.Enable the Python Development Workload (just like for VS2017).In the visual studio installer, enable the Python Development workload Capturing user input via Console Application whist debugging a Python application is possible when using a Terminal (console window) to capture the input.

DEBUGGING PYTHON IN VISUAL STUDIO HOW TO

This guide assumes you already know how to build blender, if you have not yet done so, please follow the Building_Blender/Windows guide. To enable, open the settings page (File > Preferences > Settings), search for Data Science: Debug Just My Code. This guide will help you set it up for use with blender. Visual Studio 2017 offers integrated debugging of python. Debugging blender python with Visual Studio Introduction













Debugging python in visual studio