# How debug in perspective

**URL:** <https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961>\
**Category:** Ignition\
**Created:** [May 14, 2019, 10:02am UTC](https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961 "2019-05-14T10:02:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![souxifou](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@souxifou](https://forum.inductiveautomation.com/u/souxifou)\
**Post date:** [May 14, 2019, 10:02am UTC](https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961/1 "2019-05-14T10:02:22Z")

</div>

Hi,

How can I debugging with the console in perspective module ?  
Is it possible to do it like in vision ?

---

<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:** [May 14, 2019, 11:01am UTC](https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961/2 "2019-05-14T11:01:49Z")

</div>

No, script errors in Perspective go to the gateway log, not the designer’s console. Because the scripts are running in the gateway. Printing in Perspective goes only to the gateway’s wrapper log.

---

<div class="post-metadata">

**Author:** ![souxifou](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@souxifou](https://forum.inductiveautomation.com/u/souxifou)\
**Post date:** [May 14, 2019, 11:24am UTC](https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961/3 "2019-05-14T11:24:58Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/9e1c751c43788472c9df885aa1cccb0c31021d05.png)

From here ?

---

<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:** [May 14, 2019, 11:30am UTC](https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961/4 "2019-05-14T11:30:38Z")

</div>

Yes. Errors and deliberate log entries (using a logger from system.util.getLogger()) go there. `print` output goes directly to the wrapper log, bypassing the logging system.

For simple stuff, I generally use `print` in the scripts while using `tail --follow wrapper.log` in a remote terminal to watch the results, simply because printed/logged line endings show nicely in the wrapper log in a terminal.

---

<div class="post-metadata">

**Author:** ![jrd](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jrd](https://forum.inductiveautomation.com/u/jrd)\
**Post date:** [June 20, 2019, 4:27am UTC](https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961/5 "2019-06-20T04:27:09Z")

</div>

Hi pturmel  
Can you elaborate on how to do this:  
“using `tail --follow wrapper.log` in a remote terminal”

---

<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:** [June 20, 2019, 10:36am UTC](https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961/6 "2019-06-20T10:36:33Z")

</div>

I secure shell into the Ignition server, change to Ignition’s log folder, and execute that command verbatim.

---

<div class="post-metadata">

**Author:** ![bebel](https://avatars.discourse-cdn.com/v4/letter/b/43a26b/32.png) [@bebel](https://forum.inductiveautomation.com/u/bebel)\
**Post date:** [July 16, 2019, 8:53pm UTC](https://forum.inductiveautomation.com/t/how-debug-in-perspective/24961/7 "2019-07-16T20:53:33Z")

</div>

Using the gateway log. How can you tell where the error is happening. All I can see is something like … (most recent call last): File “”, line 3, in valueChanged… and a little more information that sometimes let me use Find to locate the error but I have a whole lot of valueChanged scripts. How do I tell which one the error is in?
