Skip to content
Merged
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
25 changes: 25 additions & 0 deletions test/debug/debug_statement_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,29 @@ def test_debugger_auto_continues_across_threads
end
end
end

class StepInTest < TestCase
def program
<<~RUBY
1| def foo(num)
2| num
3| end
4|
5| DEBUGGER__.step_in do
6| foo(10)
7| end
RUBY
end

def test_step_in_stops_the_program
run_ruby(program, options: "-Ilib -rdebug") do
assert_line_num(6)
type "s"
assert_line_num(2)
type "num"
assert_line_text(/10/)
type "c"
end
end
end
end