3

您好,我在 Aptana 3 中远程调试 Rails 应用程序(部署在 vagrant vm 上)有问题。

宝石文件:

source 'https://rubygems.org'

gem 'rails', '3.2.3'
gem 'bootstrap-sass', '2.0.0'
gem 'bcrypt-ruby', '3.0.1'
gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache'
gem 'ruby-debug-base19x', '~> 0.11.30.pre4'
gem 'ruby-debug19',:require => 'ruby-debug'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

group :development, :test do
  gem 'sqlite3', '1.3.5'
  gem 'rspec-rails', '2.9.0'
  gem 'rb-inotify', '0.8.8'
  gem 'libnotify', '0.5.9'
  gem "watchr", "~> 0.7"
  gem 'guard-rspec', '0.5.5'
  gem 'guard'
  gem 'annotate', '~> 2.4.1.beta'
  gem 'sextant'
end


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '3.2.4'
  gem 'coffee-rails', '3.2.2'
  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  gem 'therubyracer'
  gem 'uglifier', '1.2.3'
end

gem 'jquery-rails', '2.0.0'

group :test do
  gem 'capybara', '1.1.2'
  gem 'spork', '~> 0.9.0'
  gem 'factory_girl_rails', '1.4.0'
end

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

导轨 s -u:

=> Booting WEBrick
=> Rails 3.2.3 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
=> Debugger enabled
[2012-06-01 06:41:48] INFO  WEBrick 1.3.1
[2012-06-01 06:41:48] INFO  ruby 1.9.3 (2011-10-30) [i686-linux]
[2012-06-01 06:41:48] INFO  WEBrick::HTTPServer#start: pid=14225 port=3000

所以启用了调试模式

在 Aptana 3 中:

调试 -> 调试配置 -> 远程 Ruby 调试会话,创建新的:

host: localhost
port: 3000

尝试运行“调试”,但仍然出现问题对话框,显示“在“启动轨道”期间发生内部错误。无效的'

知道如何启用 aptana 3 远程调试吗?

谢谢你。

4

0 回答 0