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 | 441 | October 28, 2021 | |
| Show error in python custom node | 5 | 821 | September 15, 2020 | |
| Dynamo Python - Debugger recommendations | 4 | 2146 | September 26, 2016 | |
| Dynamo and Revit Crash - See which nodes create crash | 5 | 657 | May 14, 2019 | |
| Python Code in Dynamo - testing? | 5 | 1746 | October 5, 2017 |