![]() Ptvsd.wait_for_attach() #in order for GH to wait for the process to be attachedįind the location of your VS ptvsd Python module:įor Visual Studio 2019 and Visual Studio 2017, the Python workload is installed in %ProgramFiles(x86)%\Microsoft Visual StudioCommon7\IDE\Extensions\Microsoft\Python where ** ** is 2019 or 2017 and ** ** is Community, Professional, or Enterprise. Ptvsd.enable_attach(secret = 'dev', address = ('localhost', 2019)) #set up secret, address and port for ptvsd Loc = r'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\python\Core' # This is the path where the Visual Studio Python modules are locate. Inside GHPythonDebug.py type this and save the file: import sys Go to Debug > Options > Python > Debugging and tick Use Legacy Debugger Open Visual Studio, and create a new Iron Python Project called GHPythonDebug. Visual Studio with Python Tools for Visual Studio (PTVSD).This guide will walk you through to debugging python scripts in Grasshopper using Visual Studio. Debugging GhPython components Visual Studio
0 Comments
Leave a Reply. |