Grasshopper Python Script debugger not working

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 …

Which Rhino version are you using?

Grasshopper 1.0.0008
Rhino 8.9.24194.18122

My bad, I forgot to add that

1 Like

Ok sweet! I can see where the problem is. Created a ticket and will get it fixed now.

RH-83287 Editor mangles script when it is updated during debug

1 Like

RH-83287 is fixed in Rhino 8 Service Release 11 Release Candidate

1 Like