# Can't load my components when debugging

**URL:** <https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908>\
**Category:** Grasshopper Developer\
**Tags:** windows\
**Created:** [March 22, 2021, 8:04pm UTC](https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908 "2021-03-22T20:04:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![comecacahuates](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/comecacahuates/32/572458_2.png) [@comecacahuates](https://discourse.mcneel.com/u/comecacahuates)\
**Post date:** [March 22, 2021, 8:04pm UTC](https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908/1 "2021-03-22T20:04:50Z")

</div>

I was following [Your First Component](https://developer.rhino3d.com/guides/grasshopper/your-first-component-windows/) tutorial, but when I debug the project, I don’t get this dialog

[![](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/7/2/0/720c5227717f8b5b16d80a57630cf8b99a53354a.png) ](https://developer.rhino3d.com/images/your-first-component-windows-05.png)

so Grasshopper doesn’t load my component. I repeated the whole tutorial again, and tried with Rhino 6 and Rhino 7, but it was the same.

When I manually drag the `.gha` in the `bin` directory file to Grasshopper window, it moves it to the `Libraries` folder, and it works, but I can’t find how to make it load it automatically.

Can anyone tell me if I can configure the library folders anywhere else or how I can make that dialog show on debugging?

---

<div class="post-metadata">

**Author:** ![christopher.ho](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/christopher.ho/32/776497_2.png) [@christopher.ho](https://discourse.mcneel.com/u/christopher.ho)\
**Post date:** [March 22, 2021, 10:01pm UTC](https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908/2 "2021-03-22T22:01:40Z")

</div>

Are you sure you don’t need the extra debug folder?  
check the build output

 ![image](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/c/1/0/c10ba97aafe78cf02a3dbe59c4e8fd7cb693eb64.png)

---

<div class="post-metadata">

**Author:** ![comecacahuates](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/comecacahuates/32/572458_2.png) [@comecacahuates](https://discourse.mcneel.com/u/comecacahuates)\
**Post date:** [March 23, 2021, 3:24am UTC](https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908/3 "2021-03-23T03:24:15Z")

</div>

Thanks for answering. This is the build output:

 ![imagen](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/3/8/e/38ed6da1dae22d67f5e2cf80f20bf3dff3c6d2a9.png)

There is no `Debug` folder as in your output. Do you know why is that?

Several years ago, I was following the same tutorial and I did exactly as it says (like this time), and I remember the debugging was successful, so I don’t know why this time it doesn’t, so I don’t know what’s happening.

---

<div class="post-metadata">

**Author:** ![christopher.ho](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/christopher.ho/32/776497_2.png) [@christopher.ho](https://discourse.mcneel.com/u/christopher.ho)\
**Post date:** [March 23, 2021, 3:26am UTC](https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908/4 "2021-03-23T03:26:37Z")

</div>

The folder listed there does not match your project folder.  
C:\dev  
should be set to match the part up to bin.  
I’m guessing you are building somewhere else.

---

<div class="post-metadata">

**Author:** ![comecacahuates](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/comecacahuates/32/572458_2.png) [@comecacahuates](https://discourse.mcneel.com/u/comecacahuates)\
**Post date:** [March 23, 2021, 3:50am UTC](https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908/5 "2021-03-23T03:50:45Z")

</div>

Sorry, I have not much experience with Visual Studio, and I don’t know if I understand what you’re saying, becuse `HelloGrasshopper` is my projet folder. You mean the path `D:\Documentos\repos\HelloGrasshopper` in the build output should be `C:\dev`? I’m confused.

I’m using `D:` because I have Windows installed in SSD `C:`, and my files in HDD `C:` , I don’t know if that has anything to do with anything.

If it helps, my project folder structure is the following:

- `D:\Documentos\repos\HelloGrasshopper`
  - `bin`
    - `HelloGrasshopper.gha`
    - `HelloGrasshopper.pdb`

  - `obj`
    - `Debug`
      - `TempPE` (empty folder)
      - `.NETFramework,Version=v4.5.AssemblyAttributes.cs`
      - `DesignTimeResolveAssemblyReferences.cache`
      - `DesignTimeResolveAssemblyReferencesInput.cache`
      - `HelloGrasshopper.csproj.CoreCompileInputs.cache`
      - `HelloGrasshopper.csproj.FileListAbsolute.txt`
      - `HelloGrasshopper.csprojAssemblyReference.cache`
      - `HelloGrasshopper.dll`
      - `HelloGrasshopper.pdb`

  - `Properties`
    - `AssemblyInfo.cs`

  - `HelloGrasshopper.csproj`
  - `HelloGrasshopper.sln`
  - `HelloGrasshopperComponent.cs`
  - `HelloGrasshopperInfo.cs`

---

<div class="post-metadata">

**Author:** ![christopher.ho](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/christopher.ho/32/776497_2.png) [@christopher.ho](https://discourse.mcneel.com/u/christopher.ho)\
**Post date:** [March 23, 2021, 4:04am UTC](https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908/6 "2021-03-23T04:04:00Z")

</div>

As in the reference on the grasshopper developer settings needs to be set to:  
D:\Documentos\repos\HelloGrasshopper\bin  
from:  
C:\dev\repositories\HelloGrasshopper\HelloGrasshopper\bin\

You get the dialog by going into Rhino and running the command grasshopperDeveloperSettings

---

<div class="post-metadata">

**Author:** ![comecacahuates](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/comecacahuates/32/572458_2.png) [@comecacahuates](https://discourse.mcneel.com/u/comecacahuates)\
**Post date:** [March 23, 2021, 4:10am UTC](https://discourse.mcneel.com/t/cant-load-my-components-when-debugging/120908/7 "2021-03-23T04:10:04Z")

</div>

I found [this answer](https://discourse.mcneel.com/t/cant-find-c-grasshopper-component-in-visual-studio-when-starting-rhino/84634/9) and he says to run `_GrasshopperDeveloperSettings` to show the dialog where I have to specify the `bin` of my project where the `.gha` is. Now it works. Thanks for answering.
