# \[IGN-1726\]Open Script Console and Console from an Event

**URL:** <https://forum.inductiveautomation.com/t/ign-1726-open-script-console-and-console-from-an-event/59672>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [May 17, 2022, 3:18pm UTC](https://forum.inductiveautomation.com/t/ign-1726-open-script-console-and-console-from-an-event/59672 "2022-05-17T15:18:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Werner](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Anthony\_Werner](https://forum.inductiveautomation.com/u/Anthony_Werner)\
**Post date:** [May 17, 2022, 3:18pm UTC](https://forum.inductiveautomation.com/t/ign-1726-open-script-console-and-console-from-an-event/59672/1 "2022-05-17T15:18:20Z")

</div>

I am trying to let the user have access to their own popup script console for them to test code during a session as well as let them have access to the Console to view information. I am not sure if this is even possible to create as they might be imbedded into the designer and not as part of the gateway. Please let me know if this is the case and if not how would I go about writing an event script to open them for the user.

---

<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:** [May 17, 2022, 3:26pm UTC](https://forum.inductiveautomation.com/t/ign-1726-open-script-console-and-console-from-an-event/59672/2 "2022-05-17T15:26:14Z")

</div>

This is a _very bad_ idea. A really, truly, **very** bad idea.

Scripts in Perspective are actually running _on the gateway_. If you expose something like this, you’re allowing users to run totally arbitrary code _on your gateway_. If they want to get your DB passwords, it’s trivial. If they want to manipulate your filesystem - it’s easy. If they want to pivot to infecting everything else in your network - it’s possible. Even with restricted access and strong passwords, it’s a _very_ risky thing to do that I would flinch away from reflexively.

---

<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 17, 2022, 3:31pm UTC](https://forum.inductiveautomation.com/t/ign-1726-open-script-console-and-console-from-an-event/59672/3 "2022-05-17T15:31:38Z")

</div>

> [@paul-griffith](#):
>
> I would ~~flinch away from reflexively~~ _run away screaming_.

Fixed it for you.

Anthony, seriously, don't do this.

---

<div class="post-metadata">

**Author:** ![Anthony\_Werner](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Anthony\_Werner](https://forum.inductiveautomation.com/u/Anthony_Werner)\
**Post date:** [May 17, 2022, 3:33pm UTC](https://forum.inductiveautomation.com/t/ign-1726-open-script-console-and-console-from-an-event/59672/4 "2022-05-17T15:33:32Z")

</div>

What about at least access to Console information what you said makes complete sense though

---

<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:** [May 17, 2022, 3:34pm UTC](https://forum.inductiveautomation.com/t/ign-1726-open-script-console-and-console-from-an-event/59672/5 "2022-05-17T15:34:55Z")

</div>

> [@\[IGN-1726\] Perspective session console](https://forum.inductiveautomation.com/t/ign-1726-perspective-session-console/59580/6):
>
> There is not a way to do this currently. We do have an open feature request (in which I’ve placed a link to this thread) to provide all warning and error level logging to sessions based on a session property. It’s not clear if that feature would also be able to include general logging or not.

---

<div class="post-metadata">

**Author:** ![Anthony\_Werner](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Anthony\_Werner](https://forum.inductiveautomation.com/u/Anthony_Werner)\
**Post date:** [May 17, 2022, 3:35pm UTC](https://forum.inductiveautomation.com/t/ign-1726-open-script-console-and-console-from-an-event/59672/6 "2022-05-17T15:35:31Z")

</div>

Got it, Thanks
