Where is the ruby debugger taking me?
I'm using the 'debugger' gem to go through some Ruby code. Upon passing
line 2 in My Code, the debugger jumps into a frame after frame of
scurrilous Ruby functions and methods. What's happening here. I've stepped
about 50 times through the debugger and it hasn't jumped back to my code
yet.
My Code
[-3, 6] in
C:/RUBY/prep-work-master/coding-test-2/practice-problems/spec/00_neare
1 require '00_nearest_larger'
=> 2 require 'rspec'
3
4 # Write a function, `nearest_larger(arr, i)` which takes an array
and an
5 # index. The function should return another index, `j`: this should
6 # satisfy:
(rdb:1) n
Debugger jumps here: Where is this?
C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/rubygems.rb:982 spec =
@path_to_default_spec_map["#{path}#{suffix}"]
[977, 986] in C:/RailsInstaller/Ruby2.0.0/lib/ruby/2.0.0/rubygems.rb
977 ##
978 # Find a Gem::Specification of default gem from +path+
979
980 def find_unresolved_default_spec(path)
981 Gem.suffixes.each do |suffix|
=> 982 spec = @path_to_default_spec_map["#{path}#{suffix}"]
983 return spec if spec
984 end
985 nil
986 end
(rdb:1)
No comments:
Post a Comment