Skip to content

Commit 9ff8728

Browse files
committed
rely on base bindings, it can create locals-only bindings just fine
1 parent cf0f0a6 commit 9ff8728

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

lib/ruby-debug-ide/command.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -136,19 +136,8 @@ def debug_silent_eval(str)
136136
end
137137
end
138138

139-
def hbinding(hash)
140-
code = hash.keys.map{|k| "#{k} = hash['#{k}']"}.join(';') + ';binding'
141-
if obj = @state.context.frame_self(@state.frame_pos)
142-
obj.instance_eval code
143-
else
144-
eval code
145-
end
146-
end
147-
private :hbinding
148-
149139
def get_binding
150-
binding = @state.context.frame_binding(@state.frame_pos)
151-
binding || hbinding(@state.context.frame_locals(@state.frame_pos))
140+
@state.context.frame_binding(@state.frame_pos)
152141
end
153142

154143
def line_at(file, line)

0 commit comments

Comments
 (0)