# Ruby Debug with Textmate

**URL:** <https://www.ruby-forum.com/t/ruby-debug-with-textmate/149263>\
**Category:** Ruby\
**Created:** [September 23, 2008, 3:13am UTC](https://www.ruby-forum.com/t/ruby-debug-with-textmate/149263 "2008-09-23T03:13:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubyfreak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Post date:** [September 23, 2008, 3:13am UTC](https://www.ruby-forum.com/t/ruby-debug-with-textmate/149263/1 "2008-09-23T03:13:21Z")

</div>

I read the following link about integrating debug with textmate. It  
mentions going to terminal and typing

rdebug -sn ./script/server webrick

But that seems like the way to debug a rails app from textmate, not a  
regular ruby program. Is there no way to integrate debug into textmate  
for regular ruby programs?

---

<div class="post-metadata">

**Author:** ![rubyfreak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e9c0ed/32.png) [@rubyfreak](https://www.ruby-forum.com/u/rubyfreak)\
**Post date:** [September 23, 2008, 3:26am UTC](https://www.ruby-forum.com/t/ruby-debug-with-textmate/149263/2 "2008-09-23T03:26:35Z")

</div>

On Monday 22 September 2008 20:05:08 Ruby F. wrote:

> I read the following link about integrating debug with textmate. It  
> mentions going to terminal and typing
> 
> rdebug -sn ./script/server webrick

If I had to guess, I would say -s is the part that’s needed for textmate  
integration.

> But that seems like the way to debug a rails app from textmate, not a  
> regular ruby program.

I suspect you could just do this:

rdebug -s ./my-regular-ruby-program.rb
