You should check out the traceback module. Here’s the first example of an implementation, that popped in the forum search:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Error debugging python script | 4 | 452 | October 28, 2021 | |
| Show error in python custom node | 5 | 837 | September 15, 2020 | |
| Dynamo Python - Debugger recommendations | 4 | 2176 | September 26, 2016 | |
| Dynamo error output | 4 | 96 | October 28, 2026 | |
| Dynamo and Revit Crash - See which nodes create crash | 5 | 666 | May 14, 2019 |