# How to develop/debug scripts on gateway

**URL:** <https://forum.inductiveautomation.com/t/how-to-develop-debug-scripts-on-gateway/81319>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 1, 2023, 4:20pm UTC](https://forum.inductiveautomation.com/t/how-to-develop-debug-scripts-on-gateway/81319 "2023-11-01T16:20:39Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Eugene49](https://avatars.discourse-cdn.com/v4/letter/e/c6cbf5/32.png) [@Eugene49](https://forum.inductiveautomation.com/u/Eugene49)\
**Post date:** [November 26, 2023, 5:31am UTC](https://forum.inductiveautomation.com/t/how-to-develop-debug-scripts-on-gateway/81319/13 "2023-11-26T05:31:51Z")

</div>

i am following. but I got a weird error.  
when using script transform (calling to project script) - I got no error.  
But when using runScript(), calling to project script returned error.

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

I debugged. Seems the error is in project script line 111:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/f/effdab163139189020dd1de0b9c362bbbfd14e79.png)

I don't know why runScript throws an error on line 111.

Attach is the project script..  
[TagMonitoring\_Project\_Script.zip](https://forum.inductiveautomation.com/uploads/short-url/oqjuLlyH68JIzhDKQOKZU5ZMFHj.zip) (1.5 KB)  
tagList format:

```auto
[
  "[default]Practice Alarming/Alarm Tag 1",
  "[default]Practice Tags/Expression Tag"
]

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-develop-debug-scripts-on-gateway/81319)._
