Error when debug Grasshopper2 with Rhino8Wip

When I debug my gh2 commponents,get this error.
image
image
How to Solve this problem? Thank you in advance!
@stevebaer @DavidRutten

@curtisw may have a better way to do this. What I am currently doing for C# projects is that I start Rhino and the in Visual Studio select

  • Debug->Attach To Process…
  • Select Rhino.exe
  • Make sure the debugger option is set to Managaged (.NET Core, .NET 5+)
  • Click Attach

Thank you very much. But G2 seems have no command like GrasshopperDeveloperSettings to let us set a developer folder. How to set a folder to debug my g2 plugins?