debugging - Where is the ruby debugger taking me? -
i'm using 'debugger' gem go through ruby code. upon passing line 2 in code, debugger jumps frame after frame of scurrilous ruby functions , methods. what's happening here. i've stepped 50 times through debugger , hasn't jumped 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 function, `nearest_larger(arr, i)` takes array , 5 # index. function should return index, `j`: should 6 # satisfy: (rdb:1) n
debugger jumps here: 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 gem::specification of default gem +path+ 979 980 def find_unresolved_default_spec(path) 981 gem.suffixes.each |suffix| => 982 spec = @path_to_default_spec_map["#{path}#{suffix}"] 983 return spec if spec 984 end 985 nil 986 end (rdb:1)
it's taking inside implementation of require
.
Comments
Post a Comment