Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6747661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:28:13+00:00 2026-05-26T12:28:13+00:00

My Rails development IDE is Aptana Studio 3.0.5, running on Windows. The applications runs

  • 0

My Rails development IDE is Aptana Studio 3.0.5, running on Windows.
The applications runs on Apache + ModRails (Phusion Passenger) on a separate CentOS Linux machine. I have both Rails 2.x and 3.x applications.

I would like to be able to use the debugger in Aptana Studio (connect to the running application remotely). There are apparently some provisions for this, but I was unable to figure out what I need on the server side (in my Rails application configuration)

I’ve tried this:

  1. Using Rack::Debug: It creates only unix socket, cannot be connected remotely.

  2. Using ruby-debug directly:

    I added this to my /config/environments/development.rb:

    if File.exists?(File.join(RAILS_ROOT,'tmp', 'debug.txt'))  
      require 'ruby-debug'  
      Debugger.wait_connection = true
      Debugger.start_remote("real.hostname", 5000, 5001)
      File.delete(File.join(RAILS_ROOT,'tmp', 'debug.txt'))
    end
  

Sprinking my code with debugger statements stop the execution, but I cannot connect to this instance from Aptana, not to port 5000 and not port 5001 (and I don’t understand why I need two ports there).

Also, this method would be rather slow and too convoluted even if it worked, I’d like to have a more "integrated" debugging. Is it possible at all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:28:14+00:00Added an answer on May 26, 2026 at 12:28 pm

    The old steps for Netbeans are relatively close since Aptana/RadRails and Netbeans share the same debugger core: http://blogs.oracle.com/martink/entry/remote_debugging_debug_whatever_ruby

    Basically, run the ruby app using rdebug-ide -p 7000 (or whatever port you want), then inside the IDE, go to Run > Debug configurations. On the left hand side, select “Remote Ruby Debug Session” and then add a new configuration there (the plus icon above the list). Enter the proper host IP/name and port you entered on the command line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get Aptana Studio setup with RadRails in Ubuntu for Rails
I am currently using Aptana RadRails for Ruby on Rails development on my local
My Rails development environment is Windows-based, and my production environment is Linux-based. It's possible
I would like to have a portable Ruby on Rails development env running on
I'm new to rails development so this is a very basic question. I'm working
Consider a basic Rails development pipeline, going from development -> staging -> production. When
I initiated myself into rails development yesterday. I installed ruby 1.9.1, rubygems and rails.
At my new job I am doing rails development and I am on Ubuntu
I'm learning VIM for Rails development and would like to easily navigate methods in
I want to start up my Rails development server like this: script/server OFFLINE_MODE=1 and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.