Grasshopper

algorithmic modeling for Rhino

Cannot Debug C# Grasshopper Assembly Component In Visual Studio

I've been working on my second component in Grasshopper and have a couple of questions regarding debugging. I am running Rhino Version 5 SR12 64-bit 5.12.50810.13095, Grasshopper 9.0076, Visual Studio 2012 Ultimate. I can open my component in Grasshopper, which has the null reference error 1. Solution exception:Object reference not set to an instance of an object,fine. Now I want to debug in Visual Studio, but my modules say no .pdb file only for any .gha,.dll's, and .rhp's found in C:\Users\Nathaniel\AppData\Roaming\McNeel\Rhinoceros\5.0\Plug-ins\Grasshopper (b45a29b1-4343-4035-989e-044e8580d9cf)\0.9.76.0\. The Debug only loads pdb. for symbols in servers and Grasshopper\Libraries, with one exception for Grasshopper.dll which is the only grasshopper component with a .pdb file in the \Mcneel\Rhinoceros...

Where are the .pdb files for all the other components Starling_0.2.gha, C_sawapan_media_x64.dll, Vector.gha, GH_IO.dll...?

I'll run off the checklist of what I've tried:

  • GrasshopperDeveloperSettings turn off COF
  • made sure Debug Platform Target is 64, as well as Configuration Manager
  • add reference in Tools>Options>Symbols add reference (pdb.) to file for where the component files are found.
  • clicked on load symbols, but that doesn't help or save any .pdb's in my symbolcache.
  • added same location in ProjectProperies>ReferencePath
  • added same location in RhinoDeveloperSettings Add Folder

Do I not even need these symbols to debug? Is there a way to add .pdb's manually to my symbolcache? Why does my breakpoint say The debugger could not locate the source file 'C:\dev\grasshopper\1.0\root\src\GH_Component.vb'? I think I read that Grasshopper was written in .vb..Why does my callstack say Grasshopper.dll!Grasshopper.Kernel.GH_Component.New(String name, String nickname, String description, String category, String subCategory)? Why the ! after the .dll?

I am thankful for any input

-Nate

Views: 1657

Attachments:

Replies to This Discussion

just solved my problem! you should on opposite  turn on the COF, cos it' s not allowing you to enter the gha folder. also might be some assemblies of some components

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service