GH component crashes - how to debug

Hello everybody,

I’m developing a rather complex GH component in C# with VS.

When I set one input parameter of the component to a certain value, Grasshopper crashes. Does anyone have an idea, how to find out, which line of code causes the crash?

Thanks for your answers.
Thomas

Hello,

in VS use “Attach Debugger” and select the Rhino Process. Then set a breakpoint, make your test and jump through the source code. Other than, write unit-tests and use a static code analyzer to see if you have conceptional flaws without even testing in Rhino/GH.

1 Like