# RuntimeError: how to find corresponding SkriptLine?

**URL:** https://talk.remobjects.com/t/runtimeerror-how-to-find-corresponding-skriptline/10025
**Category:** Pascal Script
**Tags:** delphi
**Created:** [July 12, 2016, 3:33pm UTC](https://talk.remobjects.com/t/runtimeerror-how-to-find-corresponding-skriptline/10025 "2016-07-12T15:33:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Klaus.Meier](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/k/a5b964/32.png) [@Klaus.Meier](https://talk.remobjects.com/u/Klaus.Meier)
#### Post date: [July 12, 2016, 3:33pm UTC](https://talk.remobjects.com/t/runtimeerror-how-to-find-corresponding-skriptline/10025/1 "2016-07-12T15:33:57Z")

</div>

Hello,  
I tried Google but did not find a solution.

Problem is:  
If a Runtime Error occures in the script, the Message looks like:  
_xxx in 0 at 28149 TPsInternalProcRec_

Now I am looking for a way to find out the line and the procedure which raises this error.

During debugging this is no problem.

Any hints or ideas?

Greetings  
Klaus

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [July 12, 2016, 6:30pm UTC](https://talk.remobjects.com/t/runtimeerror-how-to-find-corresponding-skriptline/10025/2 "2016-07-12T18:30:04Z")

</div>

There’ currently no function that returns this info. It probably could be added in the same way debugging works (or you can run in debug mode and keep the last line info), but it’s currently not.

---

<div class="post-metadata">

### Author: ![Klaus.Meier](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/k/a5b964/32.png) [@Klaus.Meier](https://talk.remobjects.com/u/Klaus.Meier)
#### Post date: [July 13, 2016, 10:14am UTC](https://talk.remobjects.com/t/runtimeerror-how-to-find-corresponding-skriptline/10025/3 "2016-07-13T10:14:36Z")

</div>

Thank you Carlo

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [July 13, 2016, 10:15am UTC](https://talk.remobjects.com/t/runtimeerror-how-to-find-corresponding-skriptline/10025/4 "2016-07-13T10:15:50Z")

</div>

Fwiw a pull request for this would be highly appreciated

---

<div class="post-metadata">

### Author: ![Klaus.Meier](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/k/a5b964/32.png) [@Klaus.Meier](https://talk.remobjects.com/u/Klaus.Meier)
#### Post date: [July 13, 2016, 10:23am UTC](https://talk.remobjects.com/t/runtimeerror-how-to-find-corresponding-skriptline/10025/5 "2016-07-13T10:23:12Z")

</div>

I am working on it
