# Create Error log for debugging python script?

**URL:** <https://forum.dynamobim.com/t/create-error-log-for-debugging-python-script/9923>\
**Category:** Developers\
**Created:** [February 27, 2017, 9:34am UTC](https://forum.dynamobim.com/t/create-error-log-for-debugging-python-script/9923 "2017-02-27T09:34:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 27, 2017, 12:09pm UTC](https://forum.dynamobim.com/t/create-error-log-for-debugging-python-script/9923/2 "2017-02-27T12:09:00Z")

</div>

You should check out the **traceback** module. Here’s the first example of an implementation, that popped in the forum search:

> [@Export View Set To DWG](https://forum.dynamobim.com/t/export-view-set-to-dwg/5441/4):
>
> OK, here’s how this works: First input is a Folder Path that you want to export the DWG to. Use Directory Path node for this. Then you have a list of views to export. For the sake of this example I just grabbed a few of the sections from my model. Then you have to specify a name for each exported view. That can be automated and we can let Revit automatically assign a name for each DWG but I usually want to specify my own so this is how I set this up. lastly we don’t want to export DW…

---

_[View the full topic](https://forum.dynamobim.com/t/create-error-log-for-debugging-python-script/9923)._
