# Go to line in script where error occurs

**URL:** <https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [January 21, 2021, 1:30pm UTC](https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309 "2021-01-21T13:30:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgrandillo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mgrandillo/32/16104_2.png) [@mgrandillo](https://forum.katalon.com/u/mgrandillo)\
**Post date:** [January 21, 2021, 1:30pm UTC](https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309/1 "2021-01-21T13:30:01Z")

</div>

Hello,

Is there a way for a user to be redirected to the line of code (script) where the error occurs, maybe  
by double clicking the error returned in the logs after running a script? Is this a missing feature?  
Thanks.

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [January 22, 2021, 12:16am UTC](https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309/2 "2021-01-22T00:16:38Z")

</div>

If you **right** click on a command/statement in the Log Viewer, do you get a popup of “Go to this step in Script View”?

---

<div class="post-metadata">

**Author:** ![mgrandillo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mgrandillo/32/16104_2.png) [@mgrandillo](https://forum.katalon.com/u/mgrandillo)\
**Post date:** [January 22, 2021, 1:16pm UTC](https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309/3 "2021-01-22T13:16:10Z")

</div>

Yes it do have that option, but the error occurs in the keyword script, not in the actual script.  
And i cannot find a way to actually go to the line in the keyword script where the error occurs.

---

<div class="post-metadata">

**Author:** ![mgrandillo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mgrandillo/32/16104_2.png) [@mgrandillo](https://forum.katalon.com/u/mgrandillo)\
**Post date:** [January 22, 2021, 1:36pm UTC](https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309/4 "2021-01-22T13:36:32Z")

</div>

Also, in this view there is no way to go to the line in the script where the error occurs.

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/c/c1f72feb5ee18a775dcc78cc664dacf5a52846a5.png)

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [January 22, 2021, 4:13pm UTC](https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309/5 "2021-01-22T16:13:44Z")

</div>

In your image, you have the error message highlighted (in blue), but your **script** is **not** the message. Your script is Item 6. So if you **right** click on Item 6, you do **not** get the popup of “Go to this step in Script View”?

---

<div class="post-metadata">

**Author:** ![mgrandillo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/mgrandillo/32/16104_2.png) [@mgrandillo](https://forum.katalon.com/u/mgrandillo)\
**Post date:** [January 22, 2021, 6:34pm UTC](https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309/6 "2021-01-22T18:34:36Z")

</div>

No that option does not appear. Note that this is from the test case’s log from the test suite, not from the test case itself. If i run the test case itself, the logs appear in the log viewer tab at the bottom of the app. Here I am able to right click on an item and go to the script view. But not from the test suite logs. Note that I am using the non Enterprise version of Katalon. Is this feature is available in the Enterprise version?

---

<div class="post-metadata">

**Author:** ![grylion54](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/grylion54/32/16265_2.png) [@grylion54](https://forum.katalon.com/u/grylion54)\
**Post date:** [January 22, 2021, 7:33pm UTC](https://forum.katalon.com/t/go-to-line-in-script-where-error-occurs/51309/7 "2021-01-22T19:33:17Z")

</div>

I just use the KS version as well, although an older version. And I run my TCs through the Test Suite as well. Perhaps there is a **feature** now that you have to turn on to perform the task?
