# Exception Handling in Scripts?

**URL:** <https://forum.inductiveautomation.com/t/exception-handling-in-scripts/71112>\
**Category:** Ignition\
**Created:** [March 15, 2023, 6:49pm UTC](https://forum.inductiveautomation.com/t/exception-handling-in-scripts/71112 "2023-03-15T18:49:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottmwyant](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/scottmwyant/32/66369_2.png) [@scottmwyant](https://forum.inductiveautomation.com/u/scottmwyant)\
**Post date:** [March 15, 2023, 6:49pm UTC](https://forum.inductiveautomation.com/t/exception-handling-in-scripts/71112/1 "2023-03-15T18:49:11Z")

</div>

How are you supposed to debug exceptions that may happen in a scheduled script? Is there any better way than looking through the wrapper.log file?

Ah, so I might have a version issue here. We are running 8.1.19 on our DEV server and I have 8.1.24 locally. I do see now that on my local instance there is a [+] button on the on the log entry that will show you the exception.

I don't see that on v8.1.19. Is that something that was recently added?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 15, 2023, 6:50pm UTC](https://forum.inductiveautomation.com/t/exception-handling-in-scripts/71112/2 "2023-03-15T18:50:02Z")

</div>

In the gateway home page go to Status-\>Logs and you can view them there instead of having to actually be in the gateway computer.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 15, 2023, 6:54pm UTC](https://forum.inductiveautomation.com/t/exception-handling-in-scripts/71112/3 "2023-03-15T18:54:35Z")

</div>

If you must, capture them in `try:` -- `except:` blocks and send the traces wherever is more convenient.

The plus sign is present if the log entry included a backtrace. That goes way way back in Ignition.

---

<div class="post-metadata">

**Author:** ![scottmwyant](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/scottmwyant/32/66369_2.png) [@scottmwyant](https://forum.inductiveautomation.com/u/scottmwyant)\
**Post date:** [March 15, 2023, 7:23pm UTC](https://forum.inductiveautomation.com/t/exception-handling-in-scripts/71112/4 "2023-03-15T19:23:49Z")

</div>

Is that configurable somehow? I've never seen that [+] sign before, so I assumed it was a recent addition. I exported/imported the project to my local instance, so the environment is what changed.
