# Zero Touch Debugging

**URL:** <https://forum.dynamobim.com/t/zero-touch-debugging/14200>\
**Category:** FAQ\
**Tags:** revit, zerotouch, api\
**Created:** [August 22, 2017, 11:04pm UTC](https://forum.dynamobim.com/t/zero-touch-debugging/14200 "2017-08-22T23:04:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mastjaso](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mastjaso](https://forum.dynamobim.com/u/mastjaso)\
**Post date:** [August 22, 2017, 11:04pm UTC](https://forum.dynamobim.com/t/zero-touch-debugging/14200/1 "2017-08-22T23:04:15Z")

</div>

Hey guys, I’ve been getting started with Zero Touch node development but I wanted to know if there’s a better way to debug that I’m missing:

- As I understand it now, every single time you want to load in a new version of your DLL file you have to fully exit both Dynamo and Revit and then restart both before the Revit process will let go of the DLL file. Is this really the case? Does anyone have any work arounds so that you don’t have to keep closing and opening Revit?

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [August 23, 2017, 6:54am UTC](https://forum.dynamobim.com/t/zero-touch-debugging/14200/2 "2017-08-23T06:54:11Z")

</div>

If you want to test them as nodes, alas that’s the only option. This is a c# limitation. Because Dynamo shares Revit’s app domain (which is the only way to work with Revit’s api), any assembly loaded into dynamo gets locked down until you close down the Revit instance.

If you’d just like to test out the code and bypass the ZT to node conversion, maybe [dynamically loading assemblies from byte arrays](https://msdn.microsoft.com/en-us/library/system.reflection.assembly.load(v=vs.110).aspx) could be an option.

You can also check the dynamic c# interpreter in the package manager, however your code will require some modifications.

---

<div class="post-metadata">

**Author:** ![mastjaso](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mastjaso](https://forum.dynamobim.com/u/mastjaso)\
**Post date:** [August 23, 2017, 2:19pm UTC](https://forum.dynamobim.com/t/zero-touch-debugging/14200/3 "2017-08-23T14:19:52Z")

</div>

Ah that’s too bad, I figured that was kind of the case. But that dynamic loading looks interesting, when I get some time I’ll try it out and see if that can be used in a testing node. Thanks!

---

<div class="post-metadata">

**Author:** ![mastjaso](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@mastjaso](https://forum.dynamobim.com/u/mastjaso)\
**Post date:** [August 30, 2017, 8:40pm UTC](https://forum.dynamobim.com/t/zero-touch-debugging/14200/4 "2017-08-30T20:40:05Z")

</div>

So for anyone coming across this the best/easiest solution I came up with was to restructure my solution a bit. My Visual Studio solution now consists of 3 projects; one that acts as a dynamo shell (handles all the interfacing with dynamo, converting to and from revit geometry / elements, and transaction management); one that acts as a revit add-in shell (a super lightweight IExternal Command class that gathers the elements I need as input (simulating dynamo’s job)), and a common library (pretty much all the actual code logic and a runmain class that gets called by both either shell).

So to test the majority of my code I just rerun the revit add-in using Add-In manager. It doesn’t help as much if you’re doing a lot of stuff with dynamo, but most of what I’m doing is on the revit end anyways so this system works well.

---

<div class="post-metadata">

**Author:** ![chuongmep](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chuongmep/32/197537_2.png) [@chuongmep](https://forum.dynamobim.com/u/chuongmep)\
**Post date:** [March 9, 2020, 9:49am UTC](https://forum.dynamobim.com/t/zero-touch-debugging/14200/5 "2020-03-09T09:49:40Z")

</div>

I also want to check my code in dynamo faster, is there any utility like addin manager?

---

<div class="post-metadata">

**Author:** ![leanhtien.hutech](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@leanhtien.hutech](https://forum.dynamobim.com/u/leanhtien.hutech)\
**Post date:** [June 5, 2024, 2:21am UTC](https://forum.dynamobim.com/t/zero-touch-debugging/14200/6 "2024-06-05T02:21:21Z")

</div>

Mr. Chuong, do you have a solution for debugging?

---

<div class="post-metadata">

**Author:** ![chuongmep](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/chuongmep/32/197537_2.png) [@chuongmep](https://forum.dynamobim.com/u/chuongmep)\
**Post date:** [June 5, 2024, 2:37am UTC](https://forum.dynamobim.com/t/zero-touch-debugging/14200/7 "2024-06-05T02:37:01Z")

</div>

Hi @leanhtien.hutech , better you should use native debugging mode to do it with visual studio.
