# Is there an environment variable that gives me line number and file?

**URL:** <https://www.ruby-forum.com/t/is-there-an-environment-variable-that-gives-me-line-number-and-file/190385>\
**Category:** Ruby\
**Created:** [June 18, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/is-there-an-environment-variable-that-gives-me-line-number-and-file/190385 "2010-06-18T23:18:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [June 18, 2010, 11:18pm UTC](https://www.ruby-forum.com/t/is-there-an-environment-variable-that-gives-me-line-number-and-file/190385/1 "2010-06-18T23:18:58Z")

</div>

External from the trace stuff that is. I just want the line number and  
file I’m  
in individually…???  
xc

---

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [June 18, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/is-there-an-environment-variable-that-gives-me-line-number-and-file/190385/2 "2010-06-18T23:23:04Z")

</div>

On 10-06-18 02:18 PM, Xeno C. / Eskimo North and Gmail wrote:

> External from the trace stuff that is. I just want the line number and  
> file I’m in individually…???  
> xc

I guess I’ve found ‘ **FILE** ’, so I just need some mythical  
‘ **LINENO** ’,  
whatever it’s actually called.

---

<div class="post-metadata">

**Author:** ![Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@Xeno\_CSS\_Eskimo\_No](https://www.ruby-forum.com/u/Xeno_CSS_Eskimo_No)\
**Post date:** [June 18, 2010, 11:58pm UTC](https://www.ruby-forum.com/t/is-there-an-environment-variable-that-gives-me-line-number-and-file/190385/3 "2010-06-18T23:58:47Z")

</div>

On Jun 18, 2010, at 5:22 PM, Xeno C. / Eskimo North and Gmail  
wrote:

> IPCC member  
> **LINE**

Rob B.  
[http://agileconsultingllc.com](http://agileconsultingllc.com)  
removed\_email\_address@domain.invalid

> **[Launch Scout Custom Software Development & Software Consulting](https://launchscout.com/)**
>
> We solve digital problems through custom software development and design for the web—apps, mobile, desktop and devices.

removed\_email\_address@domain.invalid
