Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/debug/thread_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,7 @@ def initialize
frame._local_variables = b.local_variables.map{|name|
[name, b.local_variable_get(name)]
}.to_h
frame._callee = b.eval('__callee__')
frame._callee = b.eval('::Kernel.__callee__')
end
}
append(frames)
Expand Down
20 changes: 20 additions & 0 deletions test/console/record_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,4 +315,24 @@ def test_1663647719
end
end
end

class RecordOnBasicClassTest < ConsoleTestCase
def program
<<~RUBY
1| class Test < BasicObject
2| def test
3| 42
4| end
5| end
6| Test.new.test
RUBY
end

def test_issue1152
debug_code program do
type 'record on'
type 'c'
end
end
end
end
Loading