# Can I attach ruby-debug to a running process?

**URL:** <https://www.ruby-forum.com/t/can-i-attach-ruby-debug-to-a-running-process/160463>\
**Category:** Deployment\
**Created:** [February 16, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/can-i-attach-ruby-debug-to-a-running-process/160463 "2009-02-16T17:27:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![troelskn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/9d8465/32.png) [@troelskn](https://www.ruby-forum.com/u/troelskn)\
**Post date:** [February 16, 2009, 5:27pm UTC](https://www.ruby-forum.com/t/can-i-attach-ruby-debug-to-a-running-process/160463/1 "2009-02-16T17:27:06Z")

</div>

Hi,

I’m having a problem which shows up in-deterministically after some  
time. Something goes wrong, and apparently the rails-process hangs,  
without exiting. I was thinking about using ruby-debug to attach to one  
of these processes, to find out where in my application that the problem  
happens. Is this possible?
