# Can't see system.perspective.print messages

**URL:** <https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [February 16, 2021, 11:11am UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450 "2021-02-16T11:11:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 16, 2021, 11:11am UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450/1 "2021-02-16T11:11:47Z")

</div>

I’m trying to see these messages printed in a client run from a browser (tried Chrome and Edge Chromium) but I can’t find the messages. My script generates 3 print statements, and all I see in the browser console is:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/e/9e078ba35552d5ac1a366b1d4a50fa6869f52962.png)

If I click on the link, it goes to less than useful js code 😕

How do I see the actual messages its outputting?

---

<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:** [February 16, 2021, 3:37pm UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450/2 "2021-02-16T15:37:08Z")

</div>

Can you show your code?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [February 16, 2021, 5:00pm UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450/3 "2021-02-16T17:00:01Z")

</div>

What you see in your screenshot is the result of the following call:

```auto
system.perspective.print('Start')
system.perspective.print('Start')
system.perspective.print('Start')

```

OR just a single line of that but invoked during three different Events.

The JS code link is because the console print is being performed by browser-side JS. You’re seeing the entirety of your message. If you’re expecting something else, then your message is not configured/formatted correctly. There is no error here, nor is there any bug _from what I can see_. Without insight into the script for clarity on what you’re trying to print, I can’t help any further.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 16, 2021, 5:52pm UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450/4 "2021-02-16T17:52:41Z")

</div>

An important point of clarification - _unlike_ Python’s builtin `print` statement/function, `system.perspective.print` only accepts (and prints) _one_ argument. You can’t just rely on varargs to send a whole list of things to print that will be automatically delimiter separated.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [February 16, 2021, 9:12pm UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450/5 "2021-02-16T21:12:44Z")

</div>

I think the actual issue I am having here is that my script simply isn’t getting through the rest of the code… The spaghetti monster knows why but he’s not talking to me. I do have a call to print at the top with ‘Start’ and I have 3 different calls to print in the script. I guess I incorrectly associated those console print statements with the 3 print statements in my script, but perhaps it’s just the script firing 3 times and failing to get through the rest of it 3 times… It’s doing my head in

---

<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:** [February 16, 2021, 10:28pm UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450/6 "2021-02-16T22:28:22Z")

</div>

> [@nminchin](#):
>
> my script simply isn’t getting through the rest of the code

Um, try-except clauses around the whole thing? With logging? (Use my PythonAsJavaException class to get python backtraces into your logs.)

---

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [December 6, 2022, 3:08pm UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450/7 "2022-12-06T15:08:31Z")

</div>

You can _if_ you use a tuple!

```auto
var1 = 'one'
var2 = 2
var3 = 3.0
system.perspective.print((var1, var2, var3)) # NB the args are in a tuple!

```

It's kind of a cheat, but handy if you're inserting temp debugging to print a bunch of variables.

HTH.  
-Shane

---

<div class="post-metadata">

**Author:** ![ShaneH](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@ShaneH](https://forum.inductiveautomation.com/u/ShaneH)\
**Post date:** [December 6, 2022, 3:15pm UTC](https://forum.inductiveautomation.com/t/cant-see-system-perspective-print-messages/43450/8 "2022-12-06T15:15:58Z")

</div>

Also there are some contexts (Timer() threads, etc.) where you don't have access to the perspective session.
