I’m having problems to use the debugger in the Grasshopper python component. The debugging execution works in principle, but if I’m defining list inputs (with or without type hints) it will not start the debugger anymore. I receive the following error, when running the component in debugging modus.
invalid syntax [0:0]
Otherwise the code runs just fine and as expected.
"""Not debgging possible in Grasshopper python Script"""
import System
import Rhino
import Grasshopper
import rhinoscriptsyntax as rs
class MyComponent(Grasshopper.Kernel.GH_ScriptInstance):
def RunScript(self,
x: System.Collections.Generic.List[object],
y: System.Collections.Generic.List[object]):
a = "Hello Python 3 in Grasshopper!"
print(a)
a= x[0]+y[0]
return
Any ideas? I do not have anything installed when it comes to plugins/virtual environments. Help would be appreciated, since I have some fancy code that NEEDS a debugging modus …