Greetings!
I’m developing a plug-in in VS 2017 using the GH Assembly Wizard for v6.
Setting up breakpoints in my code works perfectly, just as expected and described in other posts in this forum.
However, I am wondering if it is possible at all for the debugger to automatically break when grasshopper raises an Error (component turns red) or a Warning (component turns orange), for example when the wrong Type is connected to an input (error), or an Invalid Cast is performed (error), or when a parameter exceeds the parameter range (warning) or when an input is left without data (warning) etc etc.
I have tried tweaking various settings inside VS, without luck. The grasshopper runtime warnings/errors are ignored by VS no matter what I do. At the moment:
-
COFF loading in GrasshopperDeveloperSettings is disabled
-
All of the Exceptions in VS Exception Settings are enabled
-
Just-My-Code in Debug Settings is enabled
-
“Enable native code debugging” in MyProject>Properties>Debug is enabled
-
“Treat Warnings as Errors” in MyProject>Properties>Build is set to “All”
My test file contains an intentionally invalid cast from Double to Float, and the component turns red, but the debugger never receives an Exception, and thus it never breaks.
Any help would be appreciated!