



Ok, so I wanted to finally be able to debug my rails apps...
- tried aptana, failed with some known bug with debugging
- trying komodo 4.1 now
- vista, komodo, oneclick ruby
- created a new project via komodo
- create models and migrated db via komodo
- ran webrick via komodo
- tried to debug via komodo, the cmd console shows up and just sits there empty as can be
now what ?
Are you loading script/server into Komodo, and starting the debugger that
way?
Or did you load the project into a Komodo Ruby-on-Rails project template
(do this only with Komodo 4.1.1 (or more recent), not 4.1.0), and double-click
the Run|Debugger icon?
It sounds like you're using the project. If you're on Windows, there is
a bug in version 4.1.0 that was fixed in 4.1.1, but it sounds like you've
run into it:
Find the file /lib/support/dbgp/rubylib/rdbgp/command.rb
and verify that the load_dbgp_commands function looks like this:
dir = File.dirname(__FILE__)
dir.gsub!(/\\/, '/') if RUBY_PLATFORM["-mswin"] # Allow for 64-bit, i686
Dir[File.join(dir, 'commands', '*.rb')].each do |file|
require file
end
end
def load_dbgp_commands dir = File.dirname(__FILE__) dir.gsub!(/\\/, '/') if RUBY_PLATFORM["-mswin"] # Allow for 64-bit, i686 Dir[File.join(dir, 'commands', '*.rb')].each do |file| require file end endKomodo 4.1.0 didn't have the line that changed backslashes to forward
slashes, and this broke with Ruby 1.8.6
It would help if you could provide some specific info, as I've had to guess
at all of them here:
- the platform and version you're running Komodo on
- which version of Komodo
- which version of Ruby
I just and went and added the command.rd update as I was experiencing the same problem. Now I get a different error, which is the following:
C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubylib/rdbgp/proce
ssor.rb:6:in `require': C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\
dbgp\rubylib/rdbgp/command.rb:84: syntax error, unexpected $end, expecting kEND
(SyntaxError)
from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli
b/rdbgp/processor.rb:6
from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli
b/rdbgp/loader.rb:28:in `require'
from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli
b/rdbgp/loader.rb:28
from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli
b/rdbgp.rb:111:in `require'
from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli
b/rdbgp.rb:111:in `get_going'
from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli
b/rdbgp.rb:125
Any ideas to fix this? I am running 186.25 of Ruby and 4.1.1.279677 of the IDE.
Thanks in advance.
awesome, I added that line of code and it works now, thanks much...
An easy way to find out for sure is to load
C:\Program Files\ActiveState Komodo IDE 4.1\lib\...
support\dbgp\rubylib/rdbgp/command.rb
into Komodo and make sure each method is folded
correctly. If there's an end missing, then
there will be a fold block that starts at a 'def',
but runs past the method's 'end'.