Problema Aptana e Debugger

Ciao a tutti,

sto cercando di configurare Aptana 3 per far girare un progetto in Rails 3 in modalità debug per sfruttare breakpoint e compagnia.

Purtroppo mi sto imbattendo in diverse difficoltà e ancora oggi non riesco a farlo funzionare correttamente. N.B. Solo in debug mode intendo perchè diversamente (rails -s) il server parte senza problemi e l'applicazione funziona correttamente.

Il problema è sempre lo stesso e ne riporto uno stralcio:

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in `require': /var/lib/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread - /var/lib/gems/1.9.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so (LoadError) ..

Poi dopo qualche secondo: Could not connect to debugger on port XYZ Dove XYZ viene indicata di volta in volta come un numero di porta variabile.

Ho letto i vari topic in rete che parlano dell'argomento e provato a fare i passaggi che indicano ma nulla.

Queste le gemme che, tra le altre, ho installato:

debugger (1.6.0) debugger-linecache (1.2.0) debugger-ruby_core_source (1.2.2) ... linecache19 (0.5.12) ... ruby-debug-base19 (0.11.25) ruby-debug-ide (0.4.16) ruby-debug-ide19 (0.4.12) ruby-debug19 (0.11.6) ruby_core_source (0.1.5)

Uso una macchina Linux con Ubuntu 13.04 e Ruby 1.9.3p194

Grazie in anticipo per ogni risposta. Yuri

hi,

do you know this?

http://www.agile-workers.com/web/de/2012/09/debugging-ruby-1-9-3-applications-in-eclipse/

hope, that at least one helps

greetings

Thank you for your answer.

Now I think the debugger is correctly installed but when I try to start the server another error occurs.

6586: Exception in DebugThread loop: wrong number of arguments (0 for 1) Backtrace: /var/lib/gems/1.9.1/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:163:in `read_command'   from: /var/lib/gems/1.9.1/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/ide_processor.rb:83:in `process_commands'   from: /var/lib/gems/1.9.1/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide.rb:122:in `block in start_control'

Unfortunately there insn't enough documentation about this problem on web.

Yuri

Reading several topics I understood that ruby-debug is no more mantained.

I removed all gems about it and installed "debugger" gem instead.

Now the problem is: how I could start rails server using debugger?

I mean: when I try to start rails server from Aptana I have this type of message: unable to find rdebug-ide ... install ruby-debug-ide.

But I don't want to use it anymore.

Thanks again for your support. Yuri.