Debug custom dll that is being referenced in visual studio macro
===

I previously asked:  [Add dll reference to visual studio macros][1]

the idea of creating the macros in my language (C#) makes it easier to create the macros. **The problem is that I cannot debug the dll**

**To solve the problem I have tried:**

1. I placed `myClassLibrary.pdb` next to `myClassLibrary.dll` hoping I where going to  be able to debug the methods in the dll by steping in to them.

2. Created a WCF service. Because I did not knew how to reference the service from vba I reference it from the class library. The problem is that I need to use variables such as `DTE.ActiveDocument` and those variables are not serializable meaning I could not pass them to the wcf service.


the idea of working in C# is very nice but not being able to debug and see what is going on makes it somewhat difficult. I might have to go to my older option where I created my code on C# compiled then decompiled into vba with reflector.


  [1]: http://stackoverflow.com/questions/11640222/add-dll-reference-to-visual-studio-macros