Git Product home page Git Product logo

ruby-debug-ide's People

Contributors

a1russell avatar cadorn avatar denofevil avatar encyphered avatar equivalence1 avatar eregon avatar fabiomr avatar francoisjacques avatar hurricup avatar jfirebaugh avatar mkrauskopf avatar mystdeim avatar nelsonjchen avatar olleolleolle avatar os97673 avatar phekmat avatar reiz avatar tdyas avatar valich avatar viuginick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-debug-ide's Issues

Error running db:migrate with 0.4.17 and Ruby 2.0.0

I am getting the same exact error when running db:migrate:

rake aborted!
cannot load such file -- debase

Could you verify which versions of ruby-debug-base19x and / or linecache that should be used with this version? I have currently:

gem "ruby-debug-base19x", "~> 0.11.29", :git => 'https://github.com/windwiny/ruby-debug-base19.git'
gem 'ruby-debug-ide', '0.4.17'

linecache is not specified in my Gemfile.

bundle update and bundle install work fine, but then I can no longer migrate the database.

Encoding issue when upgrading to 0.4.17.beta16

When evaluating with rubymine (5.0.2 build) some variables I get the following error:

Encoding::UndefinedConversionError: "\xC2" from ASCII-8BIT to UTF-8
(eval):5:in `print_variable'
(eval):3:in `print_variable'
(eval):5:in `print_element'
(eval):3:in `print_element'
(eval):5:in `print_inspect'
(eval):3:in `print_inspect'

This doesn't happen with version 0.4.17.beta14. I'm also using jruby-1.7.2

Error running db:migrate with 0.4.17.beta17

I recently updated to Ruby 2.0.0. I am using '0.4.17.beta17' and while 'bundle install' completes successfully, when I run db:migrate I get:

rake aborted!
cannot load such file -- debase

Removing the gem from my Gemfile resolves the error. I was wondering if there is a different version I should be using? Thanks.

Gem fails to build on OSX 10.9 default ruby with XCode 5.1.1

I was trying to install the gem on OSX 10.9 (ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]) with XCode 5.1.1 and the following error occurred.

ERROR:  Error installing ruby-debug-ide:
    ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby mkrf_conf.rb
Installing base gem
Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
checking for vm_core.h... yes
creating Makefile

make "DESTDIR="
compiling breakpoint.c
compiling context.c
compiling debase_internals.c
compiling locker.c
linking shared-object debase_internals.bundle
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [debase_internals.bundle] Error 1

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/debase-0.0.9 for inspection.
Results logged to /Library/Ruby/Gems/2.0.0/gems/debase-0.0.9/ext/gem_make.out
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/ext/builder.rb:60:in `run'
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/ext/builder.rb:33:in `block in make'
[...]

Are there any work-arounds? I am left without a debugger...

Exception in Netbeans when stopping at breakpoint

I use the following:
Netbeans 8.0.1
CentOS
ruby-debug-ide-0.4.23.beta9

When stopping at breakpoint the following exception occurs in Netbeans:
java.lang.IllegalStateException: Unexpected event. Expecting variable end tag.value
at org.rubyforge.debugcommons.reader.XmlStreamReader.ensureEndTag(XmlStreamReader.java:41)
at org.rubyforge.debugcommons.reader.VariablesReader.parseVariables(VariablesReader.java:90)
at org.rubyforge.debugcommons.reader.VariablesReader.parse(VariablesReader.java:48)
at org.rubyforge.debugcommons.reader.VariablesReader.readVariables(VariablesReader.java:105)
at org.rubyforge.debugcommons.ReadersSupport.processElement(ReadersSupport.java:156)
at org.rubyforge.debugcommons.ReadersSupport.startXPPLoop(ReadersSupport.java:116)
at org.rubyforge.debugcommons.ReadersSupport.access$200(ReadersSupport.java:44)
[catch] at org.rubyforge.debugcommons.ReadersSupport$XPPLoop.run(ReadersSupport.java:271)

This didn't occur on ruby-debug-ide-0.4.23.beta1.
I tried ruby-debug-ide-0.4.23.beta7 before and I had problems with breakpoints and I think it was same problem. I returned to ruby-debug-ide-0.4.23.beta1 anyway.

adjusting the frame has no effect

Attempting to adjust the frame using up, down, or frame does not change the current frame. I am attempting to debug a task running within an IRB session.

Output of running these commands using ruby-debug-ide with -d:

Processing: where
Processing context: where
<frames>
<frame no='1' file='/Users/stephenprater/Sites/datatron/lib/datatron/translator.rb' line='168' current='true' />
<frame no='2' file='/Users/stephenprater/Sites/datatron/lib/datatron/translator.rb' line='193' />
<frame no='3' file='/opt/local/lib/ruby1.9/1.9.1/irb/workspace.rb' line='0' />
<frame no='4' file='/opt/local/lib/ruby1.9/1.9.1/irb/workspace.rb' line='80' />
<frame no='5' file='/opt/local/lib/ruby1.9/1.9.1/irb/context.rb' line='254' />
<frame no='6' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='159' />
<frame no='7' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='156' />
<frame no='8' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='229' />
<frame no='9' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='228' />
<frame no='10' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='155' />
<frame no='11' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='70' />
<frame no='12' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='69' />
<frame no='13' file='/opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb' line='44' />
<frame no='14' file='/opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb' line='8' />
<frame no='15' file='/Users/stephenprater/Sites/agrport/script/rails' line='23' />
<frame no='16' file='/Users/stephenprater/Sites/agrport/script/rails' line='6' />
</frames>
:RdProcessing: frame -2
Processing context: frame -2
Selected frame no 14
Processing: up
Processing context: up
Selected frame no 1
Processing: up
Processing context: up
Selected frame no 1
Processing: up
Processing context: up
Selected frame no 1
Processing: where
Processing context: where
<frames>
<frame no='1' file='/Users/stephenprater/Sites/datatron/lib/datatron/translator.rb' line='168' current='true' />
<frame no='2' file='/Users/stephenprater/Sites/datatron/lib/datatron/translator.rb' line='193' />
<frame no='3' file='/opt/local/lib/ruby1.9/1.9.1/irb/workspace.rb' line='0' />
<frame no='4' file='/opt/local/lib/ruby1.9/1.9.1/irb/workspace.rb' line='80' />
<frame no='5' file='/opt/local/lib/ruby1.9/1.9.1/irb/context.rb' line='254' />
<frame no='6' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='159' />
<frame no='7' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='156' />
<frame no='8' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='229' />
<frame no='9' file='/opt/local/lib/ruby1.9/1.9.1/irb/ruby-lex.rb' line='228' />
<frame no='10' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='155' />
<frame no='11' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='70' />
<frame no='12' file='/opt/local/lib/ruby1.9/1.9.1/irb.rb' line='69' />
<frame no='13' file='/opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb' line='44' />
<frame no='14' file='/opt/local/lib/ruby1.9/gems/1.9.1/gems/railties-3.0.7/lib/rails/commands/console.rb' line='8' />
<frame no='15' file='/Users/stephenprater/Sites/agrport/script/rails' line='23' />
<frame no='16' file='/Users/stephenprater/Sites/agrport/script/rails' line='6' />
</frames>

Debugger seems to stop stepping into silently under IDea in one method consistently (at different breakpoints)

I'm not sure exactly why, because I can debug any other gem used in Rails and step through fine, however I can confirm through repeated attempts that when I place breakpoints in different places within the _scope method of JBuilder in jbuilder/lib/jbuilder.rb (so, create a Rails 4.0.1 project using ruby-2.0.0-p247 that has a JBuilder template for a json view, and place a breakpoint on either the @attibutes line above the yield or after it), then when it breaks at that breakpoint (blue highlighted line), and I click on "step into", the breakpoint stays blue (although I clicked step into), and then, a few seconds later, the line goes pink, and the debugger Variables window says Disconnected. It's the only place I've had problems with so far using the debugger.

Project environment/involved gems:

  • ruby 2.0.0 p247
  • rails 4.0.1
  • jbuilder 1.5.2
  • debase 0.0.8
  • ruby-debug-ide 0.4.18 and master (currently 0.4.21@d9e379 and verified that IDea recognized and using that version)

IDE:

  • IDea 12.1.6
  • IDea Ruby plugin 5.4.0.20130703

Simply creating a new Rails 4.0.1 project with a simple controller containing:

respond_to :json
def index
  SomeModel.all
end

...along with a simple model, and jbuilder.json view, and resourceful route associated with it may be enough to reproduce, but not sure.

Installation failure with ruby-1.9.3-pre392

Hi,

I've been struggling with this one for the last hours. A trivial fix may exist, but my knowledge of the gem dependency system isn't very good at this point... but it's improving fast.

Anyway, I keep hitting a build error with ruby-debug-ide due to mismatched prototypes, i.e. the infamous:

ruby_debug.c:24:19: error: conflicting types for ‘rb_iseq_compile_with_option’
 RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt); /* from iseq.c */

I would have thought that the gem dependency system would figure out that the presence of ruby-debug-base19-0.11.30.pre15 satisfies the requirement of https://github.com/ruby-debug/ruby-debug-ide/blob/master/ext/mkrf_conf.rb#L23, but no... Reading the Gem DependencyInstaller doc, I understood that the system will strictly consider stable modules unless the prerelease flag is set, which, for the first install attempt, isn't.

Alright.

Then, I also noticed that the line https://github.com/ruby-debug/ruby-debug-ide/blob/master/ext/mkrf_conf.rb#L33 would help it install/accept the prerelease version, but no... it still keeps on failing, and I can see the message:

Gem files will remain installed in /...path snipped.../gems/ruby-1.9.3-p392/gems/ruby-debug-base19x-0.11.29 for inspection

This makes me believe that gem is indeed using the stable version even though the prerelease is available.

At this point, my guess is that the presence of the stable version, installed by the execution of line 31, makes the dependency system always fallback to that version. It somehow ignores that a more recent, prerelease, version is installed. Perhaps, the rescue statement should rollback (uninstall) the failing module prior to give a shot to the prerelease? I'm not sure about this though, but I can confirm that the prerelease version is systematically ignored even though it is installed AND known to gem.

Finally, I'm looking at line 41 and the already_installed statement. The second condition makes me believe it should have found the prerelease version... but clearly didn't somehow.

Ideas? Fix?

Thanks in advance...
-François

Exception in DebugThread loop: closed stream (Ruby 2.0)

I'm using Jetbrains RubyMine 6.0.3 and it is required ruby-debug-ide for debugging.
I try to debug very simple command in the Vagrant project (https://github.com/mitchellh/vagrant): I try to execute vagrant help

And I got the next error:

/Users/legal/.rbenv/versions/2.0.0-p353/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/legal/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/bin/rdebug-ide --disable-int-handler --port 49923 --dispatcher-port 49924 -- /Users/legal/Documents/vagrant/bin/vagrant help
Fast Debugger (ruby-debug-ide 0.4.22, debase 0.0.9) listens on 127.0.0.1:49923
19753: Exception in DebugThread loop: closed stream
Backtrace:
/Users/legal/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/interface.rb:44:in `close'
  from: /Users/legal/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/interface.rb:44:in `close'
  from: /Users/legal/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:103:in `ensure in process_commands'
  from: /Users/legal/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:103:in `process_commands'
  from: /Users/legal/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:122:in `block in start_control'

Process finished with exit code 1

When I used Ruby 1.9.3 and debugger-xml, it was successful in the RubyMine.
But now now I've switched to Ruby 2.0 and ruby-debug-ide became required. So, the debug is not working now.

That is my Gem list: https://gist.github.com/legal90/e7841ff5d008fd34a41a

Please, help me to find the reason of this problem.

P.s. If you need some additional information about my environment - please let me know and I'll collect it.

RubyMine + byebug 4.0.3 + ruby-debug-ide 0.4.28 exception

So here is what I see when start debugging session in RubyMine:

/home/dmitry/.rvm/rubies/ruby-2.2.0/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/dmitry/.rvm/gems/ruby-2.2.0/gems/ruby-debug-ide-0.4.28/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 36273 --dispatcher-port 37467 -- /home/dmitry/Disk/Programming/Ruby/tests/CodeAcademy/bin/rails server -b 127.0.0.1 -p 3000 -e development
Fast Debugger (ruby-debug-ide 0.4.28, debase 0.1.2) listens on 127.0.0.1:36273
**Uncaught exception: Could not find byebug-4.0.1 in any of the sources**
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/spec_set.rb:92:in `block in materialize'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/spec_set.rb:85:in `map!'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/spec_set.rb:85:in `materialize'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/definition.rb:132:in `specs'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/definition.rb:177:in `specs_for'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/definition.rb:166:in `requested_specs'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/environment.rb:18:in `requested_specs'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/runtime.rb:13:in `setup'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler.rb:122:in `setup'
    /home/dmitry/.rvm/gems/ruby-2.2.0@global/gems/bundler-1.8.3/lib/bundler/setup.rb:18:in `<top (required)>'
    /home/dmitry/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    /home/dmitry/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    /home/dmitry/Disk/Programming/Ruby/tests/CodeAcademy/config/boot.rb:3:in `<top (required)>'
    /home/dmitry/Disk/Programming/Ruby/tests/CodeAcademy/bin/rails:7:in `require_relative'
    /home/dmitry/Disk/Programming/Ruby/tests/CodeAcademy/bin/rails:7:in `<top (required)>'

As you can see Uncaught exception: Could not find byebug-4.0.1 in any of the sources, but my byebug version is (4.0.3). Byebug version 4.0.1 doesn't work with RubyMine according to this issue which has been fixed in byebug(4.0.3).

Failed update from 0.4.17 to 0.4.18

Environment: ArchLinux 32-bit, ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux], jruby 1.7.4 (2.0.0) 2013-05-16 2390d3b on OpenJDK Server VM 1.7.0_40-b31 +indy [linux-i386]

Updating ruby-debug-ide
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-ide:
        ERROR: Failed to build gem native extension.

    /usr/bin/ruby mkrf_conf.rb
Installing base gem
Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling context.c
In file included from /usr/include/string.h:25:0,
                 from /usr/include/ruby-2.0.0/ruby/ruby.h:51,
                 from /usr/include/ruby-2.0.0/ruby.h:33,
                 from ./debase_internals.h:4,
                 from context.c:1:
/usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^
cc1: all warnings being treated as errors
make: *** [context.o] Error 1


Gem files will remain installed in /usr/lib/ruby/gems/2.0.0/gems/debase-0.0.4 for inspection.
Results logged to /usr/lib/ruby/gems/2.0.0/gems/debase-0.0.4/ext/gem_make.out
/usr/lib/ruby/2.0.0/rubygems/ext/builder.rb:60:in `run'
  /usr/lib/ruby/2.0.0/rubygems/ext/builder.rb:33:in `block in make'
  /usr/lib/ruby/2.0.0/rubygems/ext/builder.rb:26:in `each'
  /usr/lib/ruby/2.0.0/rubygems/ext/builder.rb:26:in `make'
  /usr/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:41:in `block in build'
  /usr/lib/ruby/2.0.0/tempfile.rb:324:in `open'
  /usr/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:18:in `build'
  /usr/lib/ruby/2.0.0/rubygems/installer.rb:678:in `block (2 levels) in build_extensions'
  /usr/lib/ruby/2.0.0/rubygems/installer.rb:677:in `chdir'
  /usr/lib/ruby/2.0.0/rubygems/installer.rb:677:in `block in build_extensions'
  /usr/lib/ruby/2.0.0/rubygems/installer.rb:652:in `each'
  /usr/lib/ruby/2.0.0/rubygems/installer.rb:652:in `build_extensions'
  /usr/lib/ruby/2.0.0/rubygems/installer.rb:218:in `install'
  /usr/lib/ruby/2.0.0/rubygems/dependency_installer.rb:372:in `block in install'
  /usr/lib/ruby/2.0.0/rubygems/dependency_installer.rb:332:in `each'
  /usr/lib/ruby/2.0.0/rubygems/dependency_installer.rb:332:in `each_with_index'
  /usr/lib/ruby/2.0.0/rubygems/dependency_installer.rb:332:in `install'
  mkrf_conf.rb:34:in `rescue in <main>'
  mkrf_conf.rb:27:in `<main>'


Gem files will remain installed in /home/asd/.gem/ruby/2.0.0/gems/ruby-debug-ide-0.4.18 for inspection.
Results logged to /home/asd/.gem/ruby/2.0.0/gems/ruby-debug-ide-0.4.18/ext/gem_make.out

Script output

I need to watch the script output via the remote connection.

Is there a way to set a flag so that stdout and stderr events get triggered holding the content of the pipes as the script executes?

This is a common feature among other debuggers.

The data could be base64 encoded within a CDATA tag of the event.

Exception in DebugThread loop: undefined method `status' (Ruby 1.9)

At random, and on different objects, I will see this error of no status method, which points to line 95 of xml_printer (in the print_context method). The status may not exist on a time object, on an object defined by my code, anything. I cannot force it to reproduce, though it happens with some regularity. The annoyance is that this exception kills the server (I'm using Aptana Studio 3 in Eclipse).

I've seen a lot of references to the error where is_binary_data? is undefined in xml_printer, but can't find anything with the status method being the problem.

I am using Ruby 1.9.3 with the following gems:

ruby-debug-base19x, version 0.11.30.pre10
ruby-debug-ide, version 0.4.17.beta14
linecache19 (0.5.12)

Any help would be appreciated.

Exception in DebugThread loop: Bad file descriptor(Errno::EBADF)

Got another one of these!

18592: Exception in DebugThread loop: Bad file descriptor(Errno::EBADF) Backtrace:
/Users/tball/.rvm/gems/ruby-2.1.1@chef/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide/interface.rb:30:in `close'   
from: /Users/tball/.rvm/gems/ruby-2.1.1@chef/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide/interface.rb:30:in `close'   
from: /Users/tball/.rvm/gems/ruby-2.1.1@chef/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide/ide_processor.rb:105:in `process_commands'   
from: /Users/tball/.rvm/gems/ruby-2.1.1@chef/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide.rb:124:in `block in start_control' 

I'm trying to debug the chef-client project. Most of the time I try debugging, my code blows up at https://github.com/opscode/chef/blob/master/spec/spec_helper.rb#L92. Basically, Ohai is trying to shell-out to the system to collect information. The shell out command fails with the above exception on stderr. When I run it without the debugger, I never see this failure.

I'm running OSX 10.9.4 and Ruby 2.1.1 via RVM.

I reproduce by:

  1. Check out the chef-client project and bundle install it
  2. Set a breakpoint in RubyMine at https://github.com/opscode/ohai/blob/master/lib/ohai/mixin/command.rb#L34
  3. Examine the m object - in the @stderr instance variable you can see the above exception

Gemspec missing from Gem

The gemspec file is not included in the gem. This is a pain, because if the gem does not install correctly (which often happens due to the ruby-debug depedency), the left-over files don't have a gemspec. That makes hacking harder, because you can't fix the local files and do rake package to build a custom gem.

Fix is easy, update lines 8-14 in the .gemspec file in GIT.

Thanks - Charlie

Dependencies

I am trying to install this gem on a server so I can do remote debugging with RubyMine however there are no Dependencies (other than rake) listed in the gemspec?

Can someone please advise what the dependencies are for this gem?

Error in question:

 bundle exec rdebug-ide                     │····························································································
/var/www/ereserve/shared/bundle/ruby/2.0.0/gems/ruby-debug-ide-0.4.23/lib/ruby-d│····························································································
ebug-ide.rb:8:in `require': cannot load such file -- debase (LoadError)         │····························································································
        from /var/www/ereserve/shared/bundle/ruby/2.0.0/gems/ruby-debug-ide-0.4.│····························································································
23/lib/ruby-debug-ide.rb:8:in `<top (required)>'                                │····························································································
        from /var/www/ereserve/shared/bundle/ruby/2.0.0/gems/ruby-debug-ide-0.4.│····························································································
23/bin/rdebug-ide:8:in `require_relative'                                       │····························································································
        from /var/www/ereserve/shared/bundle/ruby/2.0.0/gems/ruby-debug-ide-0.4.│····························································································
23/bin/rdebug-ide:8:in `<top (required)>'                                       │····························································································
        from /var/www/ereserve/shared/bundle/ruby/2.0.0/bin/rdebug-ide:23:in `lo│····························································································
ad'                                                                             │····························································································
        from /var/www/ereserve/shared/bundle/ruby/2.0.0/bin/rdebug-ide:23:in `<m│····························································································
ain>'

docker-compose build : Gem::Ext::BuildError while installing ruby-debug-ide 0.6.0 or 0.6.1.beta2

Greetings;

I can run "gem install ruby-debug-ide -v '0.6.0' or -v '0.6.1.beta2' to completion, no problem.

When I run "docker-compose build" against my Gemfile that includes ruby-debug-ide (both cases, same result), I get a Gem::Ext::BuildError.

Have you seen this before?

Thanks for your help!
[email protected]

Please find below:

  1. Segment of build with error
  2. Gemfile
  3. Here is the portion of the build with the error:

Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Installing rake 11.2.2
Installing i18n 0.7.0
Using json 1.8.3
Installing minitest 5.9.0
Installing thread_safe 0.3.5
Installing builder 3.2.2
Installing erubis 2.7.0
Installing mini_portile2 2.1.0
Installing pkg-config 1.1.7
Installing rack 1.6.4
Installing mime-types-data 3.2016.0521
Installing arel 6.0.3
Installing debug_inspector 0.0.2 with native extensions
Installing coffee-script-source 1.10.0
Installing execjs 2.7.0
Installing thor 0.19.1
Installing concurrent-ruby 1.0.2
Installing debase-ruby_core_source 0.8.6
Installing multi_json 1.12.1
Installing pg 0.18.4 with native extensions
Using bundler 1.12.5
Installing sass 3.4.22
Installing tilt 2.0.5
Installing spring 1.7.1
Installing ruby-debug-ide 0.6.0 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/ruby-debug-ide-0.6.0/ext

/usr/bin/ruby2.3 mkrf_conf.rb
Installing base gem
Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Failed to build gem native extension.

current directory: /var/lib/gems/2.3.0/gems/debase-0.2.2.beta8/ext

/usr/bin/ruby2.3 -r ./siteconf20160702-401-8mnotr.rb extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)2.3
--with-ruby-dir
--without-ruby-dir
--with-ruby-include
--without-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
/var/lib/gems/2.3.0/gems/debase-ruby_core_source-0.8.6/lib/debase/ruby_core_source.rb:70:in ruby_source_dir_version': undefined method[]' for nil:NilClass (NoMethodError)
from /var/lib/gems/2.3.0/gems/debase-ruby_core_source-0.8.6/lib/debase/ruby_core_source.rb:58:in block in deduce_packaged_source_dir' from /var/lib/gems/2.3.0/gems/debase-ruby_core_source-0.8.6/lib/debase/ruby_core_source.rb:58:inmap'
from /var/lib/gems/2.3.0/gems/debase-ruby_core_source-0.8.6/lib/debase/ruby_core_source.rb:58:in deduce_packaged_source_dir' from /var/lib/gems/2.3.0/gems/debase-ruby_core_source-0.8.6/lib/debase/ruby_core_source.rb:36:increate_makefile_with_core'
from extconf.rb:47:in `

'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

/var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta8/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/debase-0.2.2.beta8 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/debase-0.2.2.beta8/gem_make.out
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:92:in run' /usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:37:inblock in build'
/usr/lib/ruby/2.3.0/tempfile.rb:295:in open' /usr/lib/ruby/2.3.0/rubygems/ext/ext_conf_builder.rb:20:inbuild'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:164:in block (2 levels) in build_extension' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:inchdir'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:163:in block in build_extension' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:insynchronize'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:162:in build_extension' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:201:inblock in build_extensions'
/usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:in each' /usr/lib/ruby/2.3.0/rubygems/ext/builder.rb:198:inbuild_extensions'
/usr/lib/ruby/2.3.0/rubygems/installer.rb:742:in build_extensions' /usr/lib/ruby/2.3.0/rubygems/installer.rb:291:ininstall'
/usr/lib/ruby/2.3.0/rubygems/request_set.rb:167:in block in install' /usr/lib/ruby/2.3.0/rubygems/request_set.rb:151:ineach'
/usr/lib/ruby/2.3.0/rubygems/request_set.rb:151:in install' /usr/lib/ruby/2.3.0/rubygems/dependency_installer.rb:405:ininstall'
mkrf_conf.rb:35:in rescue in <main>' mkrf_conf.rb:28:in

'

rake failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.3.0/gems/ruby-debug-ide-0.6.0 for inspection.
Results logged to /var/lib/gems/2.3.0/extensions/x86_64-linux/2.3.0/ruby-debug-ide-0.6.0/gem_make.out
Installing rdoc 4.2.2
Installing tzinfo 1.2.2
Installing nokogiri 1.6.8 with native extensions
Installing rack-test 0.6.3
Installing mime-types 3.1
Installing binding_of_caller 0.7.2 with native extensions
Installing coffee-script 2.4.1
Installing uglifier 3.0.0
Installing sprockets 3.6.2
Installing debase 0.2.1 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

  1. Here is my Gemfile

source 'https://rubygems.org'
ruby '2.3.0'
gem 'rails', '4.2.6'
gem 'pg', '> 0.15'
gem 'sass-rails', '
> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '
> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc

group :development, :test do
gem 'ruby-debug-ide', '0.6.0'
gem 'debase'
end

group :development do
gem 'web-console', '~> 2.0'
gem 'spring'
end

End session event

I need an event that gets fired when the debug session ends successfully rather than looking for the socket to close.

Is that already possible?

Hangs Starting Thin

I'm running ruby-debug-ide with the following syntax:

rdebug-ide --port 1234 --dispatcher-port 26162 --host 0.0.0.0 -- /usr/local/bundle/bin/thin --ssl --ssl-cert-file $SSL_CERT_FILE --ssl-key-file $SSL_KEY_FILE --prefix /api/reagents -p 443 start

The odd thing is I get the message that Fast Debugger is listening on 0.0.0.0:1234 but thin never starts. However, if I Ctrl^C, some process ends (I'm assuming rdebug-ide) and thin then starts up. Any ideas what could be going on here?

Failed to load ruby file in a path that contains Chinese characters

I wrote a simple ruby file with Eclipse Aptana plugin.
When I put the file in a folder that contains Chinese character in the name, ruby debug send error message as follows:
(BTW, if I move the file into a folder without Chinese characters, it will run ok. I am using ruby 2.3.1)

Thanks for your attention and waiting for a reply.

Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.1, file filtering is supported) listens on 127.0.0.1:4223
Uncaught exception: cannot load such file -- D:/360����/Kevin/Test/test.rb
D:/Ruby23/bin/rdebug-ide:23:in load' D:/Ruby23/bin/rdebug-ide:23:in

'
D:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:88:in debug_load': cannot load such file -- D:/360����/Kevin/Test/test.rb (LoadError) from D:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:88:indebug_program'
from D:/Ruby23/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide:130:in <top (required)>' from D:/Ruby23/bin/rdebug-ide:23:inload'
from D:/Ruby23/bin/rdebug-ide:23:in `'

Undefined method `frame_pos` on Debase object

Stacktrace:

637: Exception in DebugThread loop: undefined method `frame_pos' for #<Debase::ControlState:0x007fc8bd3f68c0>(NoMethodError)
Backtrace:
/Users/tball/.rvm/gems/ruby-2.1.4@global/gems/ruby-debug-ide-0.4.23.beta11/lib/ruby-debug-ide/commands/frame.rb:41:in `execute'
  from: /Users/tball/.rvm/gems/ruby-2.1.4@global/gems/ruby-debug-ide-0.4.23.beta11/lib/ruby-debug-ide/ide_processor.rb:90:in `block in process_commands'
  from: /Users/tball/.rvm/gems/ruby-2.1.4@global/gems/ruby-debug-ide-0.4.23.beta11/lib/ruby-debug-ide/ide_processor.rb:87:in `catch'
  from: /Users/tball/.rvm/gems/ruby-2.1.4@global/gems/ruby-debug-ide-0.4.23.beta11/lib/ruby-debug-ide/ide_processor.rb:87:in `process_commands'
  from: /Users/tball/.rvm/rubies/ruby-2.1.4/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.4.23.beta11/lib/ruby-debug-ide.rb:124:in `block in start_control'

I got this trying to debug a Chef cookbook earlier, using the beta11 of ruby-debug-ide and 0.1.0 of debase in the latest version of Rubymine for OSX Yosemite. Ruby is 2.1.4 installed with RVM. I haven't seen this before when debugging Chef cookbooks.

I'm manually pinning the gem versions in my gemspec so that I can run rvmsudo bundle exec rdebug-ide --host 0.0.0.0 --port 58959 --dispatcher-port 58960 -- ./bin/chef-client. I need to run this in rvmsudo because Chef needs sudo permissions to install packages. I know that rvmsudo can mess up the environment some (Dir.getwd comes back as / when I am not executing the command from there).

Let me know what other debugging information I can provide.

Support for ruby 2.1

Given ruby 2.1

cat .ruby-version 
2.1.1
ruby --version
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]

When I gem install ruby-debug-ide
Then I should not see the following error:

No source for ruby-2.1.1-p76 provided with debugger-ruby_core_source gem.

Error raking on ruby 1.8

I am trying to build this gem and am getting an error.

$ ruby --version
ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0]


$ gem list 

*** LOCAL GEMS ***

bundler (1.0.18)
columnize (0.3.4)
linecache (0.46)
rake (0.9.2)
rbx-require-relative (0.0.5)
ruby-debug (0.10.4)
ruby-debug-base (0.10.4)
ruby-debug-ide (0.4.16)


$ rake

rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test:test-base" -I"/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib" "/Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/rake_test_loader.rb" "test/**/*_test.rb" 
./test/../test-base/../lib/ruby-debug-ide.rb:5:in `require': no such file to load -- ruby-debug-base (LoadError)
    from ./test/../test-base/../lib/ruby-debug-ide.rb:5
    from /pinf/workspaces/github.com/cadorn/ruby-debug-ide/test/ruby-debug/xml_printer_test.rb:2:in `require'
    from /pinf/workspaces/github.com/cadorn/ruby-debug-ide/test/ruby-debug/xml_printer_test.rb:2
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `require'
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9:in `each'
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:9
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5:in `each'
    from /Library/Ruby/Gems/1.8/gems/rake-0.9.2/lib/rake/rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]

Tasks: TOP => default => test
(See full trace by running task with --trace)

Uncaught exception: superclass mismatch for class SyntaxError

Fast Debugger (ruby-debug-ide 0.4.23.beta1, debase 0.0.9) listens on 127.0.0.1:62941
WARN: Unresolved specs during Gem::Specification.reset:
rake (>= 0.8.1)
debugger-ruby_core_source (>= 0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/i386-mingw32/psych.so: warning: already initialized constant Psych::Parser::ANY
c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/i386-mingw32/psych.so: warning: already initialized constant Psych::Parser::UTF8
c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/i386-mingw32/psych.so: warning: already initialized constant Psych::Parser::UTF16LE
c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/i386-mingw32/psych.so: warning: already initialized constant Psych::Parser::UTF16BE
Uncaught exception: superclass mismatch for class SyntaxError
c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/psych/syntax_error.rb:5:in <module:Psych>' c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/psych/syntax_error.rb:1:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/psych.rb:1:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/psych.rb:1:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/ordered_hash.rb:2:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/ordered_hash.rb:2:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/ordered_options.rb:1:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/ordered_options.rb:1:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/configuration.rb:2:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/configuration.rb:2:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/railtie.rb:2:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/railtie.rb:2:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/engine.rb:1:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/engine.rb:1:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/plugin.rb:1:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/plugin.rb:1:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/application.rb:3:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/application.rb:3:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails.rb:10:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails.rb:10:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/all.rb:1:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/all.rb:1:in<top (required)>'
C:/Vikash/aptana_workspace/RailsDemoApp1/config/application.rb:3:in require' C:/Vikash/aptana_workspace/RailsDemoApp1/config/application.rb:3:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands.rb:53:in require' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands.rb:53:inblock in <top (required)>'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands.rb:50:in tap' c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/railties-3.2.16/lib/rails/commands.rb:50:in<top (required)>'
C:/Vikash/aptana_workspace/RailsDemoApp1/script/rails:6:in require' C:/Vikash/aptana_workspace/RailsDemoApp1/script/rails:6:in<top (required)>'
c:/RailsInstaller/Ruby2.0.0/bin/rdebug-ide:23:in load' c:/RailsInstaller/Ruby2.0.0/bin/rdebug-ide:23:in

'
c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/psych/syntax_error.rb:5:in <module:Psych>': superclass mismatch for class SyntaxError (TypeError) from c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/psych/syntax_error.rb:1:in<top (required)>'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/psych.rb:1:in require' from c:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/psych.rb:1:in<top (required)>'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/ordered_hash.rb:2:in require' from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/ordered_hash.rb:2:in<top (required)>'
from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/ordered_options.rb:1:in require' from c:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/activesupport-3.2.16/lib/active_support/ordered_options.rb:1:in<top (required)>'

ruby-debug-base depedency

Install ruby-debug-base19x.
Install ruby-debug-ide.

It tries to install ruby-debug-base19x, although it is installed. This is annoying if you had to make local changes to ruby-debug-base19x to get it to install (so now you have to get the ruby-debug-ide source code and fix it to not require the depedency).

Looks like the code causing the issue is in ext/mkrf_conf.rb, which is trying to accomadate both ruby 1.8 and ruby 1.9. Before running the code at line 19, could a check be added to see if ruby-debug-base is already installed and to not try and reinstall it?

Thanks - Charlie

Already initialized constant warnings for DEF_OPTIONS and IDE_VERSION

When I start dev server in debug mode I am getting the below warnings. I have tried doing gem uninstall ruby-debug-base19x which was previously in my Gemfile; however it still shows as installed under RubyMine, but I am not sure if this is the source of the problem.

Fast Debugger (ruby-debug-ide 0.4.17, debase 0.0.4) listens on 127.0.0.1:41245
/home/drewsheneman/.rvm/gems/ruby-2.0.0-p195/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/version.rb:2: warning: already initialized constant Debase::IDE_VERSION
/home/drewsheneman/.rvm/gems/ruby-2.0.0-p195/bundler/gems/ruby-debug-ide-dcefde9f464f/lib/ruby-debug-ide/version.rb:2: warning: previous definition of IDE_VERSION was here
/home/drewsheneman/.rvm/gems/ruby-2.0.0-p195/gems/ruby-debug-ide-0.4.17/lib/ruby-debug-ide/command.rb:27: warning: already initialized constant Class::DEF_OPTIONS
/home/drewsheneman/.rvm/gems/ruby-2.0.0-p195/bundler/gems/ruby-debug-ide-dcefde9f464f/lib/ruby-debug-ide/command.rb:27: warning: previous definition of DEF_OPTIONS was here

Timeout in RubyMine's Evaluate Expression window when running selenium-webdriver commands (Ruby 2.3.x)

In Ruby 2.3.0 (and beyond), when running selenium commands (selenium-webdriver gem, v. 2.53.4) in the Evaluate Expression (i.e. @browser.get('http://www.google.com')) of RubyMine, the command eventually times out with the attached stack trace. Please note that stepping over selenium commands in the debugger (not in the Evaluate Expression window), after setting a breakpoint, works fine. It's just when I'm executing them inside the Evaluate Expression window of RubyMine that I'm seeing the problem.

This was working in Ruby 2.1.6.

Relevant environment information:
OS: OSX 10.11.5
Browser: FF v. 45.0.1 and Chrome (latest)
IDE: RubyMine: 2016.1 (and also 2016.2 EAP)
Ruby: 2.3.0 and 2.3.1
Selenium-webdriver: 2.53.4

image

crash with Jruby on 2.0

something that I see manifested under RubyMine but I have in the past been redirected to this project which is why Im posting here. I have tried this under Jruby
1.7.9
1.7.8
1.7.6

but it works with lang level 1.9, the problem is that I have to re-code all my calls using Ruby 2.0 named arguments syntax. This was working before. Current RM has loaded the latest and greatest apparently:

ruby-debug-base (0.10.5.rc9 java)
ruby-debug-ide (0.4.22)
linecache (0.46 java)

Here's the stack:

/Users/charles/.rvm/rubies/jruby-1.7.9/bin/jruby --2.0 -X+O -J-Djruby.compile.mode=OFF -J-Djruby.debug.fullTrace=true -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/charles/.rvm/gems/jruby-1.7.9/gems/ruby-debug-ide-0.4.22/bin/rdebug-ide --disable-int-handler --port 51573 --dispatcher-port 51574 -- /Users/charles/.rvm/gems/jruby-1.7.9/bin/rackup -o 0.0.0.0 -p 9292 /Users/charles/RubymineProjects/TbDatabaseService3/src/config.ru
Exception in thread "RubyThread-2: /Users/charles/.rvm/gems/jruby-1.7.9/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:103" java.lang.ArrayIndexOutOfBoundsException: -1
at org.jruby.runtime.ThreadContext.getCurrentFrame(ThreadContext.java:447)
at org.jruby.runtime.ThreadContext.getFrameKlazz(ThreadContext.java:586)
at org.jruby.internal.runtime.RubyRunnable.run(RubyRunnable.java:96)
at java.lang.Thread.run(Thread.java:744)

If its relevant

Variable inspection

When getting back Hash variables using the var command how would I go about issuing a command to drill into the Hash to inspect it?

Release 0.4.17 to stable?

Are there plans to release 0.4.17 to stable now that ruby 2 is out? I can confirm that 0.4.17beta16 is working in Netbeans 7.3 for ruby 2.0.0 with the debase-0.0.3 gem (provided you patch the debase gem - see ruby-debug/debase#4) and it would be nice to be able to just do 'gem install ruby-debug-ide'.

Large project performance issue

This is a follow-up to an issue I originally filed against the JRuby project:

jruby/jruby#1086

When using ruby-debug-ide in RubyMine (current versions: ruby-debug-ide 0.4.21, RubyMine: 132.1053), I'm seeing individual line stepping taking anywhere from 30 - 50s in my Rails 3.2 application. I thought enabling ObjectSpace was to blame, but when I ran the same project through rspec and ruby-debug from the command-line, I found line stepping happened in less than one second.

I still don't know if this is a ruby-debug-ide issue or a RubyMine problem. But it appears that ruby-debug itself is at least reasonably fast, even with ObjectSpace enabled. And the problem does seem related to project size or ObjectSpace size. When I use RubyMine + ruby-debug-ide on a smaller project, I can step over lines very quickly. But as the project gets larger, things slow down considerably.

warning: already initialized constant DEF_OPTIONS

ubuntu 10.04_64x
rails (3.2.3)
ruby-debug-base19 (0.11.25)
ruby-debug-base19x (0.11.30.pre10)
ruby-debug-ide (0.4.17.beta9)
ruby-debug19 (0.11.6)

rails s
/home/****/.rvm/gems/ruby-1.9.3-p194/gems/ruby-debug-ide-0.4.17.beta9/lib/ruby-debug-ide/command.rb:27: warning: already initialized constant DEF_OPTIONS
=> Booting Thin
=> 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
>> Thin web server (v1.3.1 codename Triple Espresso)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop

Interaction with Netbeans 7.4.x

Messages log of Netbeans 7.4.x shows this message:

SEVERE [org.rubyforge.debugcommons.Util]: Error Output:
~/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems/dependency.rb:247:in to_specs': Could not find ruby-debug-ide (= 0.4.21) amongst [actionmailer-3.2.13, actionpack-3.2.13, activemodel-3.2.13, activerecord-3.2.13, activeresource-3.2.13, activesupport-3.2.13, archive-tar-minitar-0.5.2, arel-3.0.2, bcrypt-ruby-3.1.1, bigdecimal-1.1.0, builder-3.0.4, bundler-1.3.5, bundler-unload-1.0.1, cancan-1.6.10, capistrano-2.15.5, capybara-2.1.0, childprocess-0.3.9, climate_control-0.0.3, cocaine-0.5.1, coffee-rails-3.2.2, coffee-script-2.2.0, coffee-script-source-1.6.3, columnize-0.3.6, cucumber-1.3.3, cucumber-rails-1.3.1, database_cleaner-1.0.1, debugger-ruby_core_source-1.2.3, devise-2.2.4, diff-lcs-1.2.4, erubis-2.7.0, exception_notification-4.0.0, execjs-1.4.0, factory_girl-4.2.0, factory_girl_rails-4.2.1, ffi-1.9.0, gherkin-2.12.0, highline-1.6.19, hike-1.2.3, i18n-0.6.1, io-console-0.3, journey-1.0.4, jquery-rails-3.0.4, json-1.8.0, json-1.5.5, libv8-3.11.8.17-x86_64-linux, linecache19-0.5.13, linecache19-0.5.12, mail-2.5.4, mime-types-1.23, mini_portile-0.5.1, minitest-2.5.1, multi_json-1.7.7, multi_test-0.0.1, mysql-2.9.1, mysql2-0.3.11, net-scp-1.1.2, net-sftp-2.1.2, net-ssh-2.6.8, net-ssh-gateway-1.2.0, nokogiri-1.6.0, orm_adapter-0.4.0, paperclip-3.4.2, pdfkit-0.5.2, polyamorous-0.6.4, polyglot-0.3.3, rack-1.4.5, rack-cache-1.2, rack-ssl-1.3.3, rack-test-0.6.2, rails-3.2.13, rails-i18n-0.7.4, railties-3.2.13, rake-10.1.0, rake-0.9.2.2, ransack-1.0.0, rdoc-3.12.2, rdoc-3.9.5, ref-1.0.5, rolify-3.2.0, rspec-core-2.14.2, rspec-expectations-2.14.0, rspec-mocks-2.14.1, rspec-rails-2.14.0, ruby-debug-base19-0.11.26, ruby-debug-base19-0.11.25, ruby-debug-base19x-0.11.30.pre15, ruby-debug-ide-0.4.21.pre1, ruby-debug19-0.11.6, ruby_core_source-0.1.5, rubygems-bundler-1.2.2, rubyzip-0.9.9, rvm-1.11.3.8, sass-3.2.9, sass-rails-3.2.6, selenium-webdriver-2.35.1, shoulda-matchers-2.2.0, sprockets-2.2.2, therubyracer-0.11.4, thor-0.18.1, tilt-1.4.1, treetop-1.4.14, tzinfo-0.3.37, uglifier-2.1.1, warden-1.2.1, websocket-1.0.7, will_paginate-3.0.5, wkhtmltopdf-binary-0.9.5.3, xpath-2.0.0] (Gem::LoadError) from ~/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems/dependency.rb:256:into_spec'
from ~/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems.rb:1231:in gem' from ~/.rvm/gems/ruby-1.9.3-p448@leeandlow/bin/rdebug-ide:22:in

'
INFO [org.netbeans.api.extexecution.ExecutionService]
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
at java.net.Socket.(Socket.java:425)
at java.net.Socket.(Socket.java:208)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attach(RubyDebuggerProxy.java:494)
Caused: org.rubyforge.debugcommons.RubyDebuggerException: Cannot connect to the debugged process at port 53757 in 15s:

Error Output:
~/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems/dependency.rb:247:in to_specs': Could not find ruby-debug-ide (= 0.4.21) amongst [actionmailer-3.2.13, actionpack-3.2.13, activemodel-3.2.13, activerecord-3.2.13, activeresource-3.2.13, activesupport-3.2.13, archive-tar-minitar-0.5.2, arel-3.0.2, bcrypt-ruby-3.1.1, bigdecimal-1.1.0, builder-3.0.4, bundler-1.3.5, bundler-unload-1.0.1, cancan-1.6.10, capistrano-2.15.5, capybara-2.1.0, childprocess-0.3.9, climate_control-0.0.3, cocaine-0.5.1, coffee-rails-3.2.2, coffee-script-2.2.0, coffee-script-source-1.6.3, columnize-0.3.6, cucumber-1.3.3, cucumber-rails-1.3.1, database_cleaner-1.0.1, debugger-ruby_core_source-1.2.3, devise-2.2.4, diff-lcs-1.2.4, erubis-2.7.0, exception_notification-4.0.0, execjs-1.4.0, factory_girl-4.2.0, factory_girl_rails-4.2.1, ffi-1.9.0, gherkin-2.12.0, highline-1.6.19, hike-1.2.3, i18n-0.6.1, io-console-0.3, journey-1.0.4, jquery-rails-3.0.4, json-1.8.0, json-1.5.5, libv8-3.11.8.17-x86_64-linux, linecache19-0.5.13, linecache19-0.5.12, mail-2.5.4, mime-types-1.23, mini_portile-0.5.1, minitest-2.5.1, multi_json-1.7.7, multi_test-0.0.1, mysql-2.9.1, mysql2-0.3.11, net-scp-1.1.2, net-sftp-2.1.2, net-ssh-2.6.8, net-ssh-gateway-1.2.0, nokogiri-1.6.0, orm_adapter-0.4.0, paperclip-3.4.2, pdfkit-0.5.2, polyamorous-0.6.4, polyglot-0.3.3, rack-1.4.5, rack-cache-1.2, rack-ssl-1.3.3, rack-test-0.6.2, rails-3.2.13, rails-i18n-0.7.4, railties-3.2.13, rake-10.1.0, rake-0.9.2.2, ransack-1.0.0, rdoc-3.12.2, rdoc-3.9.5, ref-1.0.5, rolify-3.2.0, rspec-core-2.14.2, rspec-expectations-2.14.0, rspec-mocks-2.14.1, rspec-rails-2.14.0, ruby-debug-base19-0.11.26, ruby-debug-base19-0.11.25, ruby-debug-base19x-0.11.30.pre15, ruby-debug-ide-0.4.21.pre1, ruby-debug19-0.11.6, ruby_core_source-0.1.5, rubygems-bundler-1.2.2, rubyzip-0.9.9, rvm-1.11.3.8, sass-3.2.9, sass-rails-3.2.6, selenium-webdriver-2.35.1, shoulda-matchers-2.2.0, sprockets-2.2.2, therubyracer-0.11.4, thor-0.18.1, tilt-1.4.1, treetop-1.4.14, tzinfo-0.3.37, uglifier-2.1.1, warden-1.2.1, websocket-1.0.7, will_paginate-3.0.5, wkhtmltopdf-binary-0.9.5.3, xpath-2.0.0] (Gem::LoadError) from ~/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems/dependency.rb:256:into_spec'
from ~/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/rubygems.rb:1231:in gem' from ~/.rvm/gems/ruby-1.9.3-p448@leeandlow/bin/rdebug-ide:22:in

'

at org.rubyforge.debugcommons.RubyDebuggerProxy.failWithInfo(RubyDebuggerProxy.java:527)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attach(RubyDebuggerProxy.java:510)
at org.rubyforge.debugcommons.RubyDebuggerProxy.getCommandSocket(RubyDebuggerProxy.java:319)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attachToRubyDebug(RubyDebuggerProxy.java:161)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attach(RubyDebuggerProxy.java:124)
at org.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:143)

Caused: java.lang.RuntimeException
at org.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:153)
at org.netbeans.modules.ruby.platform.execution.RubyProcessCreator.call(RubyProcessCreator.java:114)
at org.netbeans.modules.ruby.platform.execution.RubyProcessCreator.call(RubyProcessCreator.java:60)
[catch] at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:258)
at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:234)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)

Allow the user to specify a range of ports to use for child processes (Commit included)

Hi,

First, I wanted to thank you for this cool gem. I'm moving over to RubyMine and the ability to do debugging easily in the IDE is very cool, even when I'm running my app in a docker container.

The only problem I have is that I am using an application server (Unicorn) that spawns multiple children, and the way ruby-debug-ide works now is that it picks a random port from the ephemeral port range for each child process and I don't really want to open all the possible ports to my docker container.

I made a branch where I added a flag (--child-process-ports MIN-MAX) that lets the user specify a port range to use and whenever a child process is created it will pick a random port from that range that is open and use that instead. This way I can open up a few ports in docker and use that range for ruby-debug-ide, knowing that my unicorn will only ever have a few child processes.

Here's the commit:

https://github.com/caleb/ruby-debug-ide/commit/4dcbef9962c1c67fc0b36717cd97594ca5e0c946

I didn't make a PR because I wanted to get your opinion on this feature.

Thanks again, I'm using this gem now by simply using a single process web server in development, but I'd like to use my production setup(-ish) in development if possible.

-Caleb

cannot load such file -- debase in IntelliJ IDEA 14.1.3

/Users/gary/.rvm/rubies/ruby-2.1.5/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/gary/.rvm/gems/ruby-2.1.5/gems/ruby-debug-ide-0.4.32/bin/rdebug-ide --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 59728 --dispatcher-port 59729 -- /Users/gary/.rvm/gems/ruby-2.1.5/bin/rspec /Users/gary/repos/freewheeler/mobile/free_intel/spec/record_store_spec.rb --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter --example "FreeIntel::RecordStore should insert and get"
Testing started at 1:46 PM ...
/Users/gary/.rvm/gems/ruby-2.1.5/gems/ruby-debug-ide-0.4.32/lib/ruby-debug-ide.rb:8:in require': cannot load such file -- debase (LoadError) from /Users/gary/.rvm/gems/ruby-2.1.5/gems/ruby-debug-ide-0.4.32/lib/ruby-debug-ide.rb:8:in<top (required)>'
from /Users/gary/.rvm/gems/ruby-2.1.5/gems/ruby-debug-ide-0.4.32/bin/rdebug-ide:8:in require_relative' from /Users/gary/.rvm/gems/ruby-2.1.5/gems/ruby-debug-ide-0.4.32/bin/rdebug-ide:8:in<top (required)>'
from -e:1:in load' from -e:1:in

'

Process finished with exit code 1

Exception in DebugThread loop: closed stream

Hello!

I have an issue trying to launch debugger from Delayed Job. Here's debug log I have:

/home/vagrant/.rvm/rubies/default/bin/ruby -e 'at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)' /home/vagrant/.gem/ruby/2.2.0/gems/ruby-debug-ide-0.6.0/bin/rdebug-ide --debug --disable-int-handler --evaluation-timeout 10 --rubymine-protocol-extensions --port 59470 --dispatcher-port 48268 -- /vagrant/bin/delayed_job run
Fast Debugger (ruby-debug-ide 0.6.0, debase 0.2.1, file filtering is supported) listens on 127.0.0.1:59470
Connected from 127.0.0.1
5372: Starting control thread
5372: Processing in control: include /vagrant/
5372: <fileIncluded file="/vagrant/"/>
5372: Processing in control: exclude /vagrant/tmp/
5372: <fileExcluded file="/vagrant/tmp/"/>
5372: Processing in control: start
5372: Starting: running program script
5372: INTERNAL ERROR!!! closed stream

5372: <error>
5372: <error>
Fatal exception in DebugThread loop: closed stream
Backtrace:
/home/vagrant/.gem/ruby/2.2.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:114:in `accept'
  from: /home/vagrant/.gem/ruby/2.2.0/gems/ruby-debug-ide-0.6.0/lib/ruby-debug-ide.rb:114:in `block in start_control'

Process finished with exit code 2

I'm using Rubymine 8.0.3, vagrant, ruby 2.2.0 with rvm and ruby-debug-ide 0.6. I tried launch debugging with rails server and it worked. I also removed all breakpoints but it still crashed.

It's quite similar to #38 and #58 but it didn't help me to fix this issue.

Thank you guys!

unable to install gem inder Win 7 64b

ruby installer environment (ruby 1.9.3p0 (2011-10-30) [i386-mingw32])

command: gem install ruby-debug-ide --pre

Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe mkrf_conf.rb

Building native extensions. This could take a while...
Building native extensions. This could take a while...
ERROR: Failed to build gem native extension.

    C:/Ruby193/bin/ruby.exe extconf.rb

checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for if rb_iseq_compile_with_option was added an argument filepath... no
C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:39: Use RbConfig instead of obsolete and deprecated Config.
checking for rb_method_entry_t.called_id in method.h... yes
checking for rb_method_entry() in method.h... yes
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
checking for if rb_iseq_compile_with_option was added an argument filepath... yes
creating Makefile

make
generating ruby_debug-i386-mingw32.def
compiling breakpoint.c
compiling ruby_debug.c
ruby_debug.c: In function 'filename_cmp':
ruby_debug.c:522:9: warning: implicit declaration of function 'filename_cmp_impl'
ruby_debug.c:530:7: warning: implicit declaration of function 'realpath'
ruby_debug.c:530:34: warning: comparison between pointer and integer
linking shared-object ruby_debug.so
ruby_debug.o: In function filename_cmp': C:\Ruby193\lib\ruby\gems\1.9.1\gems\ruby-debug-base19x-0.11.30.pre6\ext\ruby_debug/ruby_debug.c:530: undefined reference torealpath'
collect2: ld returned 1 exit status
make: *** [ruby_debug.so] Error 1

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.pre6 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-base19x-0.11.30.pre6/ext/ruby_debug/gem_make.out
C:/Ruby193/lib/ruby/1.9.1/rubygems/installer.rb:552:in rescue in block in build_extensions' C:/Ruby193/lib/ruby/1.9.1/rubygems/installer.rb:530:inblock in build_extensions'
C:/Ruby193/lib/ruby/1.9.1/rubygems/installer.rb:505:in each' C:/Ruby193/lib/ruby/1.9.1/rubygems/installer.rb:505:inbuild_extensions'
C:/Ruby193/lib/ruby/1.9.1/rubygems/installer.rb:180:in install' C:/Ruby193/lib/ruby/1.9.1/rubygems/dependency_installer.rb:297:inblock in install'
C:/Ruby193/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in each' C:/Ruby193/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:ineach_with_index'
C:/Ruby193/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in install' mkrf_conf.rb:25:inrescue in

'
mkrf_conf.rb:20:in `'

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.17.beta8 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.17.beta8/ext/gem_make.out

gem fails to install after upgrading to ruby 2.0.0-p645

I am getting the following error when i run bundle install after upgrading to ruby 2.0.0-p645

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.                                                     

    /home/vagrant/.rbenv/versions/2.0.0-p645/bin/ruby mkrf_conf.rb                                                                    
Installing base gem                                                                                                                   
Building native extensions.  This could take a while...                                                                               
Building native extensions.  This could take a while...                                                                               
ERROR: Failed to build gem native extension.                                                                                          

    /home/vagrant/.rbenv/versions/2.0.0-p645/bin/ruby extconf.rb                                                                      
checking for vm_core.h... no                                                                                                          
checking for vm_core.h... no                                                                                                          
Makefile creation failed                                                                                                              
**************************************************************************                                                            
No source for ruby-2.0.0-p645 provided with debase-ruby_core_source gem.                                                              
**************************************************************************                                                            
*** extconf.rb failed ***                                                                                                             
Could not create Makefile due to some reason, probably lack of necessary                                                              
libraries and/or headers.  Check the mkmf.log file for more details.  You may                                                         
need configuration options.                                                                                                           

Provided configuration options:                                                                                                       
        --with-opt-dir                                                                                                                
        --without-opt-dir                                                                                                             
        --with-opt-include                                                                                                            
        --without-opt-include=${opt-dir}/include                                                                                      
        --with-opt-lib                                                                                                                
        --without-opt-lib=${opt-dir}/lib                                                                                              
        --with-make-prog                                                                                                              
        --without-make-prog                                                                                                           
        --srcdir=.                                                                                                                    
        --curdir                                                                                                                      
        --ruby=/home/vagrant/.rbenv/versions/2.0.0-p645/bin/ruby                                                                      
        --with-ruby-dir                                                                                                               
        --without-ruby-dir                                                                                                            
        --with-ruby-include=${ruby-dir}/include                                                                                       
        --with-ruby-lib                                                                                                               
        --without-ruby-lib=${ruby-dir}/                                                                                               


Gem files will remain installed in /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/debase-0.1.3.beta1 for inspection
.                                                                                                                                     
Results logged to /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/debase-0.1.3.beta1/ext/gem_make.out               
/home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/ext/builder.rb:62:in `run'                                           
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:39:in `block in build'                     
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/tempfile.rb:324:in `open'                                                   
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:19:in `build'                              
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/installer.rb:689:in `block (3 levels) in build_extensions'         
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/installer.rb:688:in `chdir'                                        
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/installer.rb:688:in `block (2 levels) in build_extensions'         
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/installer.rb:687:in `synchronize'                                  
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/installer.rb:687:in `block in build_extensions'                    
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/installer.rb:662:in `each'                                         
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/installer.rb:662:in `build_extensions'                             
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/installer.rb:227:in `install'                                      
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/dependency_installer.rb:379:in `block in install'                  
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/dependency_installer.rb:339:in `each'                              
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/dependency_installer.rb:339:in `each_with_index'                   
  /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/rubygems/dependency_installer.rb:339:in `install'                           
  mkrf_conf.rb:35:in `rescue in <main>'                                                                                               
  mkrf_conf.rb:28:in `<main>'                                                                                                         


Gem files will remain installed in /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.28 for inspect
ion.                                                                                                                                  
Results logged to /home/vagrant/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.28/ext/gem_make.out            
An error occurred while installing ruby-debug-ide (0.4.28), and Bundler cannot continue.                                              
Make sure that `gem install ruby-debug-ide -v '0.4.28'` succeeds before bundling.              

Problems debugging scripts that use the names print_arry, print_hash or print_string

Hi,

I've found a strange behavior while using the variables view in Aptana Studio 3 (build: 3.6.0.201407100658) as well as RubyMine 6.3.3 (Build #RM-135.1104) during debugging.

What I have done:
I have a small script for demo

!/usr/bin/env ruby

def print_array_
puts 'now in print_array'
end

def print_hash_
puts 'now in print_hash'
end

def print_string_
puts 'now in print_string'
end

sample_ary = [1,2]
sample_str = 'sample string'
sample_hsh = {'ary' => [1,1],
'str' => 'sample'}

puts 'Breakpoint 1'
puts 'Breakpoint 2'
puts 'Breakpoint 3'

The last tree lines were break points in the debugger.

This script works well with the method names given in the script and the content of variables was displayed in the variables view when the first breakpoint was reached (see files *working_fine.png).

aptana - working fine:
aptana - working fine

rubymine - working fine:
rubymine - working fine

After renaming the method's names by removing the last underscore, the behavior during debugging becomes strange. Using the name print_array (without trailing underscore) and trying to see the content of the sample_ary at the first breakpoint, aptana and rubymine skipped the breakpoint and the variable view changed to the screen seen in the files *print_array.png. The behavior was similar when print_hash_ was renamed to print_hash and I tried to see the content of sample_hsh.

aptana - print_array:
aptana - print_array

rubymine - print_array:
rubymine - print_array

When renaming print_string_ to print_string RubyMine gave the same result. In Apatana the picture was a little different (see Aptana - print_string.png).

aptana - print_string:
aptana - print_string

I'm unable to determine the exact reason for this behavior. Is it ruby-1.9.3-p547, ruby-debug-ide 0.4.22, ruby-debug-base19x 0.11.30.pre15, Aptana Studio or RubyMine? Maybe print_array is a reserved name for the use of ruby-debug-ide, which uses the name for an internal method.

Please keep me informed about your opinion on this topic.

Best regards
Bertram

Installation of the ruby-debug-ide gem doesn't honour --http-proxy setting

Transferred from http://rubyforge.org/tracker/index.php?func=detail&aid=28896&group_id=3085&atid=11903

OS: Mac OS X 10.6.6
Ruby version: ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]
Gems version: 1.4.2
ruby-debug-ide version: 0.4.16

When attempting to install the ruby-debig-ide gem from the command line when I am behind a company firewall using:

sudo gem install --http-proxy http://<proxy_address>:<proxy_port> ruby-debug ruby-debug-base ruby-debug-ide

Two of the 3 gems install successfully, however the 3rd gem (ruby-debug-ide) does not install, and complains that the
rubygems.org isn't a valid repository:

ERROR: http://rubygems.org/ does not appear to be a repository

After taking my MacBook home and trying it from home, it worked without any problems, so it appears that the install
of this gem doesn't honour the proxy settings.

Debugger cannot attach to a multi-process Passenger server

Hello,

When using Passenger as local dev server and when configured to run in multi-process mode (e.g. with --min-instances 3 --max-pool-size 3), the debugger is not able to attach to it.

App 99288 stderr: Fatal exception in DebugThread loop: Address already in use - bind(2) for "127.0.0.1" port 53437
App 99288 stderr: Backtrace:
App 99288 stderr: /Users/tonci/.rvm/gems/ruby-2.1.3/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide.rb:108:in `initialize'
App 99288 stderr:   from: /Users/tonci/.rvm/gems/ruby-2.1.3/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide.rb:108:in `new'
App 99288 stderr:   from: /Users/tonci/.rvm/gems/ruby-2.1.3/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide.rb:108:in `block in start_control'
Filter chain halted as #<Proc:0x007fa055999ec0@/Users/tonci/.rvm/gems/ruby-2.1.3/gems/actionpack-4.1.6/lib/action_controller/metal/http_authentication.rb:71> rendered or redirected
App 99288 stdout: 
[ 2014-10-15 13:17:14.9334 99258/0x10a0cf000 Pool2/Implementation.cpp:287 ]: Could not spawn process for application /Users/tonci/RubymineProjects/test-server: An error occured while starting the web application.

Can't install on Ubuntu with Ruby 2

I'm not sure why, but I had no issues with the ruby-debug-ide gem for the past several months in my Ubuntu VM (running with Vagrant/Virtualbox). Today, I did a vagrant destroy then a vagrant up and all of a sudden I'm getting this new issue.

All other developers with similar issues & solutions have not given me any solutions that work for my installation. I don't know what to do at this point. Help please!

almsgive@almsgive-box:~$ gem install ruby-debug-ide
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-ide:
        ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-2.0.0-p576/bin/ruby mkrf_conf.rb
Installing base gem
Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-2.0.0-p576/bin/ruby extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
Makefile creation failed
**************************************************************************
No source for ruby-2.0.0-p576 provided with debugger-ruby_core_source gem.
**************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/rvm/rubies/ruby-2.0.0-p576/bin/ruby
        --with-ruby-dir
        --without-ruby-dir
        --with-ruby-include
        --without-ruby-include=${ruby-dir}/include
        --with-ruby-lib
        --without-ruby-lib=${ruby-dir}/

extconf failed, exit code 1

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.0.0-p576/gems/debase-0.0.9 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.0.0-p576/extensions/x86_64-linux/2.0.0/debase-0.0.9/gem_make.out
/usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:89:in `run'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:38:in `block in build'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/2.0.0/tempfile.rb:324:in `open'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:17:in `build'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:161:in `block (2 levels) in build_extension'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:160:in `chdir'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:160:in `block in build_extension'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:159:in `synchronize'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:159:in `build_extension'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:198:in `block in build_extensions'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:195:in `each'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/ext/builder.rb:195:in `build_extensions'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/installer.rb:677:in `build_extensions'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/installer.rb:232:in `install'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/request_set.rb:142:in `block in install'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/request_set.rb:126:in `each'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/request_set.rb:126:in `install'
  /usr/local/rvm/rubies/ruby-2.0.0-p576/lib/ruby/site_ruby/2.0.0/rubygems/dependency_installer.rb:389:in `install'
  mkrf_conf.rb:34:in `rescue in <main>'
  mkrf_conf.rb:27:in `<main>'

rake failed, exit code 1

Gem files will remain installed in /usr/local/rvm/gems/ruby-2.0.0-p576/gems/ruby-debug-ide-0.4.22 for inspection.
Results logged to /usr/local/rvm/gems/ruby-2.0.0-p576/extensions/x86_64-linux/2.0.0/ruby-debug-ide-0.4.22/gem_make.out

Traceback -- remove 'ruby-debug-ide' entries

Transferred from http://rubyforge.org/tracker/index.php?func=detail&aid=27004&group_id=3085&atid=11903

Quoting http://www.netbeans.org/issues/show_bug.cgi?id=158497:

I suggest you remove from the traceback for unhandled exceptions the lines in "ruby-debug-ide". They look
like this...

C:/Program Files/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.4/lib/ruby-debug.rb:96:in debug_load' C:/Program Files/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.4/lib/ruby-debug.rb:96:inmain'
C:/Program Files/ruby/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.3.4/bin/rdebug-ide:76
C:/Program Files/ruby/bin/rdebug-ide:19:in `load'
C:/Program Files/ruby/bin/rdebug-ide:19

They just clutter up the output window with the same stuff each time, without adding anything of benefit. I believe
they were not included in prior versions.

Problem in ruby-debug-ide.

Consolidate under the ruby-debug organization?

The ruby-debug gem and a couple other related projects are now living at https://github.com/ruby-debug.

What do you think about transferring this project to that organization as well? Then we have all the major 1.8 debugging projects in one place.

I believe this would be as simple as using the "Transfer Ownership" feature on the repo admin page. @denofevil is a ruby-debug admin and could do it; feel free to make @olegs an admin too.

Uncaught exception: superclass mismatch for class RemoteInterface

I'm getting this when using ruby-debug-ide 0.4.16 with rails 3.2.3 and ruby 1.9.2p290... any idea?

Fast Debugger (ruby-debug-ide 0.4.16, ruby-debug-base 0.11) listens on 127.0.0.1:39767
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:128:in `<module:Debugger>'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:1:in `<top (required)>'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:1:in `require_relative'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug19-0.11.6/cli/ruby-debug/processor.rb:1:in `<top (required)>'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:6:in `require_relative'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:6:in `<top (required)>'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in `require'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in `each'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:66:in `block in require'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in `each'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler/runtime.rb:55:in `require'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@global/gems/bundler-1.0.22/lib/bundler.rb:122:in `require'
  /Users/wcamarao/Projects/spikes/ror/config/application.rb:15:in `<top (required)>'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/railties-3.2.3/lib/rails/commands.rb:53:in `block in <top (required)>'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
  /Users/wcamarao/Projects/spikes/ror/script/rails:6:in `require'
  /Users/wcamarao/Projects/spikes/ror/script/rails:6:in `<top (required)>'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide.rb:112:in `debug_load'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug-ide-0.4.16/lib/ruby-debug-ide.rb:112:in `debug_program'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/gems/ruby-debug-ide-0.4.16/bin/rdebug-ide:87:in `<top (required)>'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/bin/rdebug-ide:19:in `load'
  /Users/wcamarao/.rvm/gems/ruby-1.9.2-p290@ror/bin/rdebug-ide:19:in `<main>'
Uncaught exception: superclass mismatch for class RemoteInterface

Please support IntelliJ IDEA with Ruby plugin

I think it would be very nice if this gem supported IntelliJ IDEA with the Ruby plugin. Since RubyMine is already supported, I should hope it would not be too difficult to add this support.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.