Create Error log for debugging python script?

Hi, my python script is crashing Dynamo. I need too know in which line…

Is there a python code snippet that creates some kind of error log / document?
How you debug your python scripts with Dynamo?

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

Thx, didn’t search for traceback…my fault!