Visual Studio 2022 - Debugging Error

Anyone else having an issue with rhino closing when trying to debug using visual studio 2022. I keep getting the below error…

‘Rhino.exe’ (CLR v4.0.30319: DefaultDomain): Loaded ‘C:\ProgramData\McNeel\Rhinoceros\7.0\Plug-ins\Datasmith Rhino Exporter (d1fdc795-b334-4933-b680-088119cdc6bb)\DatasmithRhino7.rhp’. Skipped loading symbols. Module is optimized and the debugger option ‘Just My Code’ is enabled.
The program ‘[49004] Rhino.exe’ has exited with code 2147483651 (0x80000003).

It means this particular .rhp is not build using debug symbols.

Basically this plugin has no .pdb, might use optimized compilation settings, and might also have some anti-debug mechanism build in. Essentially, to prevent (easy) reverse-engineering. It might kill the process when it notices a debugger is attached.

Also, within your VS preferences, you need to enable the debugging of external code.

You should remove the plugin, for the purpose of developing.