# Ruby intepreter LIne no tracking

**URL:** <https://www.ruby-forum.com/t/ruby-intepreter-line-no-tracking/133057>\
**Category:** Ruby\
**Created:** [March 27, 2008, 8:46am UTC](https://www.ruby-forum.com/t/ruby-intepreter-line-no-tracking/133057 "2008-03-27T08:46:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suresh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@suresh](https://www.ruby-forum.com/u/suresh)\
**Post date:** [March 27, 2008, 8:46am UTC](https://www.ruby-forum.com/t/ruby-intepreter-line-no-tracking/133057/1 "2008-03-27T08:46:57Z")

</div>

Hi ,

I am rite now creating an IDE that executes and gets results from ruby  
process. That contains all of the features of normal IDE.

I am struck to make MY ide to look for the currently executing line  
in ruby intepretter. My task here is to show the currently executing  
line of ruby in my IDE.

Please help me out…

---

<div class="post-metadata">

**Author:** ![suresh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@suresh](https://www.ruby-forum.com/u/suresh)\
**Post date:** [March 27, 2008, 10:22am UTC](https://www.ruby-forum.com/t/ruby-intepreter-line-no-tracking/133057/2 "2008-03-27T10:22:13Z")

</div>

On Thu, Mar 27, 2008 at 8:44 AM, suresh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi ,
> 
> I am rite now creating an IDE that executes and gets results from ruby  
> process. That contains all of the features of normal IDE.
> 
> I am struck to make MY ide to look for the currently executing line  
> in ruby intepretter. My task here is to show the currently executing  
> line of ruby in my IDE.

use set\_trace\_func

---

<div class="post-metadata">

**Author:** ![suresh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/aca169/32.png) [@suresh](https://www.ruby-forum.com/u/suresh)\
**Post date:** [March 28, 2008, 7:20am UTC](https://www.ruby-forum.com/t/ruby-intepreter-line-no-tracking/133057/3 "2008-03-28T07:20:34Z")

</div>

On Thu, Mar 27, 2008 at 2:10 PM, suresh [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > > line of ruby in my IDE.  
> > > so i dont want anything that related to the ruby code that means  
> > > executing something.
> 
> i want the solution general so that i can get the things to my vb .net  
> appl.

There is a C side equivalent of set\_trace\_func, see rcov, ruby-prof or  
RubyMemoryValidator.  
So you set a callback in a ruby extension, and then you have to  
forward the info to your IDE.

J.
