IronPython Runtime Exception

Good Afternoon:
A puzzler has turned up while debugging my custom Grasshopper Components. After cleaning up some code, I attempted to debug my C# project in Windows VS2022 and get the following exception.

Because the exception was not appearing yesterday, I attempted the following corrective action.

  1. Updated both Rhino and Grasshopper dependencies from NuGet. No Change.
  2. Re-updated (Repaired) to the latest version of Rhino. No Change.
  3. Updated to the newest version of VS2022. No Change.

The exception appears before the Rhino splash screen goes away in debug node. When the exception happens, VS2022 is stuck, and I must use the TaskManager to stop/end the program. However, Rhino runs fine apart from debug mode.

Thanks ahead for any assistance.
Dave

Further investigation shows changing the debug settings in VS2022 allowed me to move forward.

The settings worked before yesterday’s update to the latest version of Rhino.
Rhino 7 SR33 2023-9-5 (Rhino 7, 7.33.23248.13001)

I was using the “Automatically decompile to source when needed (Managed only)” setting to catch the dreaded Object reference not set to an instance of an object. or Index out of range. error messages. In the past, I had found an error or two triggered within the System.Collections library. These are not easily identified, at least by me, without this setting.

So much to learn…
Hope this helps anyone that may have experienced similar issues.

Dave

1 Like