# How to retrieve current ruby stacktrace

**URL:** <https://rubytalk.org/t/how-to-retrieve-current-ruby-stacktrace/31550>\
**Category:** ruby-talk\
**Created:** [3 October 2006 05:47 UTC](https://rubytalk.org/t/how-to-retrieve-current-ruby-stacktrace/31550 "2006-10-03T05:47:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ray\_Chen](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Ray\_Chen](https://rubytalk.org/u/Ray_Chen)\
**Post date:** [3 October 2006 05:47 UTC](https://rubytalk.org/t/how-to-retrieve-current-ruby-stacktrace/31550/1 "2006-10-03T05:47:48Z")

</div>

My ruby program is stuck somewhere on some blocking call, but I don't  
know where. Any way to probe it for a stack trace without sending it a  
kill signal? What are some debugger tools for something like this?

Thanks  
Ray

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Ezra\_Zygmuntowicz](https://avatars.discourse-cdn.com/v4/letter/e/958977/32.png) [@Ezra\_Zygmuntowicz](https://rubytalk.org/u/Ezra_Zygmuntowicz)\
**Post date:** [3 October 2006 06:10 UTC](https://rubytalk.org/t/how-to-retrieve-current-ruby-stacktrace/31550/2 "2006-10-03T06:10:42Z")

</div>

[http://weblog.jamisbuck.org/2006/9/25/gdb-wrapper-for-ruby](http://weblog.jamisbuck.org/2006/9/25/gdb-wrapper-for-ruby)

-Ezra

> **···**
>
> On Oct 2, 2006, at 10:47 PM, Ray Chen wrote:
> 
> > My ruby program is stuck somewhere on some blocking call, but I don't  
> > know where. Any way to probe it for a stack trace without sending it a  
> > kill signal? What are some debugger tools for something like this?
> > 
> > Thanks  
> > Ray
> > 
> > --  
> > Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Robert\_K1](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/robert_k1/32/1830_2.png) [@Robert\_K1](https://rubytalk.org/u/Robert_K1)\
**Post date:** [3 October 2006 08:50 UTC](https://rubytalk.org/t/how-to-retrieve-current-ruby-stacktrace/31550/3 "2006-10-03T08:50:08Z")

</div>

How about "ruby -debug"?

&nbsp;&nbsp;&nbsp;&nbsp;robert

> **···**
>
> Ray Chen \<ray.c.chen@gmail.com\> wrote:
> 
> > My ruby program is stuck somewhere on some blocking call, but I don't  
> > know where. Any way to probe it for a stack trace without sending it  
> > a kill signal? What are some debugger tools for something like this?

---

<div class="post-metadata">

**Author:** ![Jordan\_Callicoat](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@Jordan\_Callicoat](https://rubytalk.org/u/Jordan_Callicoat)\
**Post date:** [3 October 2006 09:00 UTC](https://rubytalk.org/t/how-to-retrieve-current-ruby-stacktrace/31550/4 "2006-10-03T09:00:07Z")

</div>

Robert Klemme wrote:

> How about "ruby -debug"?

s/-debug/-d/

Regards,  
Jordan
