Giter Site home page Giter Site logo

ruby-debug / ruby-debug-base19 Goto Github PK

View Code? Open in Web Editor NEW
14.0 9.0 14.0 258 KB

Fast Ruby debugger - core component for Ruby 1.9

Home Page: http://teamcity.jetbrains.com/project.html?projectId=project51

License: BSD 2-Clause "Simplified" License

Ruby 15.59% C 84.41%

ruby-debug-base19's Issues

2 different compilation issues with 2.1.5

Just trying to install (MRI 2.1.5 on Yosemite) gives me this:

/Users/gisborne/.rvm/gems/ruby-2.1.5/gems/ruby_core_source-0.1.5/lib/contrib/uri_ext.rb:268:in `block (2 levels) in read': Looking for http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-2.1.5-p273.tar.gz and all I got was a 404! (URI::NotFoundError)

Note the "1.9". If I use local source for ruby, I get this:

$ gem install ruby-debug19 -- --with-ruby-include=/Users/gisborne/.rvm/src/ruby-2.1.5/

compiling ruby_debug.c
ruby_debug.c:27:19: error: conflicting types for 'rb_iseq_compile_with_option'
RUBY_EXTERN VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
^
/Users/gisborne/.rvm/src/ruby-2.1.5/vm_core.h:685:7: note: previous declaration is here
VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE absolute_path, VALUE line, rb_block_t *base_block, VALUE opt);

Same two problems occur with ruby-2.0.0-p598

Will not install (HEAD, or 0.11.26) against 1.9.3-p0

 gem install {linecache19-0.5.13.gem,ruby-debug-base19-0.11.26.gem} -- --with-ruby-include=$(echo ~/.rbenv/versions/1.9.3-p0/)
Building native extensions.  This could take a while...
Successfully installed linecache19-0.5.13
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug-base19-0.11.26.gem:
    ERROR: Failed to build gem native extension.

        /Users/leehambley/.rbenv/versions/1.9.3-p0/bin/ruby extconf.rb --with-ruby-include=/Users/leehambley/.rbenv/versions/1.9.3-p0/
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.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=/Users/leehambley/.rbenv/versions/1.9.3-p0/bin/ruby
    --with-ruby-dir
    --without-ruby-dir
    --with-ruby-include=${ruby-dir}/include
    --with-ruby-lib
    --without-ruby-lib=${ruby-dir}/lib
extconf.rb:16:in `block in <main>': break from proc-closure (LocalJumpError)
    from /Users/leehambley/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `call'
    from /Users/leehambley/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.5/lib/ruby_core_source.rb:18:in `create_makefile_with_core'
    from extconf.rb:32:in `<main>'


Gem files will remain installed in /Users/leehambley/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.26 for inspection.
Results logged to /Users/leehambley/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ruby-debug-base19-0.11.26/ext/ruby_debug/gem_make.out
1 gem installed
Installing ri documentation for linecache19-0.5.13...
Installing RDoc documentation for linecache19-0.5.13...

I'm really struggling to understand the problem here, sources from ruby were compiled with this trivial build symbols hiding patch Which I require to make perftools.rb work.

Please don't consider this a "please help a noob" ticket, I've spent a lot of time on this, and the config works for others, for what it's worth OS is OSX Snow Lion, with LLVM gcc version

12:33 cache (master) $ gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

1.9.3 support

Hi,

ruby-debug-base doesn't compile with the latest ruby 1.9.3 from head. The problem is that the signature of rb_iseq_compile_with_options has changed.

In ruby 1.9.2:

rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt)

In ruby 1.9.3

rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt)

Note the additional filepath parameter.

Are you planning on adding 1.9.3 support anytime soon? Happy to help test if you'd like.

Thanks - Charlie

ruby-debug stop on exception

I'm using ruby debug and have configured RubyMine Breakpoint Exception to stop on NoMethodError so I can trap for certain errors in the place where my code is having issues. When I start the debugger I get this error:

/Users/mbp2/.rvm/gems/[email protected]/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:58: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.7.0]

-- control frame ----------
c:0069 p:0084 s:0268 b:0267 l:000266 d:000266 METHOD /Users/calvin_mbp2/.rvm/gems/[email protected]/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:58
c:0068 p:0040 s:0260 b:0260 l:000259 d:000259 METHOD /Users/calvin_mbp2/.rvm/gems/[email protected]/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:46
c:0067 p:---- s:0254 b:0254 l:000253 d:000253 FINISH
...

/Users/calvin_mbp2/.rvm/gems/[email protected]/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:46:in method_missing' /Users/calvin_mbp2/.rvm/gems/[email protected]/gems/activesupport-3.1.0/lib/active_support/whiny_nil.rb:58:inraise_nil_warning_for'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

I am running with the following environment:
ruby 1.9.2-p290
Rails 3.1.0 on RVM
ruby-debug-base19x (0.11.30.pre10, 0.11.28)
ruby-debug-ide (0.4.17.beta8, 0.4.17.beta5)
Rubymine 4.0.3 for the IDE.

I have done some investigation and have commented out the config to log nils and get slightly farther. In that case the debug session starts up but when the breakpoint is triggered, I then get the same exception shown in the stack above.

config.whiny_nils = true

Question: Is this a problem with ruby debug or ruby-debug-ide or is this symptom related to Rubymine? Is there a way to run, and debug into the stackframe without blowing up or resulting in segmentation fault...

Thanks in advance for any insight or recommendations you can make that will help.

Error on Ruby 1.9.2

Hi,

I received an error when execute a test in ruby 1.9.2

Failure/Error: debugger
undefined method `run_init_script' for Debugger:Module

Have some idea?

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.