Sha256: 4805edd532fec7e4e32100a2b3789faf07e0cae68c31f3fad1b77391bfa104ef

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 KB

Contents

#!/usr/bin/env ruby

require 'rd_test_base'
require 'stepping_breakpoints_test'

class RDSteppingAndBreakpointsTest < RDTestBase

  include SteppingAndBreakpointsTest

  def test_hit_breakpoint_while_stepping_over
    create_test2 ["class Test2", "def print", "puts 'XX'", "puts 'XX'", "end", "end"]
    create_socket ["require 'test2.rb'", "Test2.new.print", "puts 'a'"]
    send_ruby("b #{@test2_name}:4")
    assert_breakpoint_added_no(1)
    run_to_line(2)
    send_next
    assert_breakpoint(@test2_name, 4)
    send_cont
  end

  def test_breakpoint_and_continue_from_other_file
    create_test2 ["class Test2", "def print12", "puts 'one'","puts 'two'", "end", "end"]
    create_socket ["require 'test2.rb'", "Test2.new.print12", "puts 'three'"]
    send_test_breakpoint(2)
    assert_breakpoint_added_no(1)
    send_ruby("b #{@test2_name}:4")
    assert_breakpoint_added_no(2)
    start_debugger
    assert_test_breakpoint(2)
    send_next # test:1 -> test2:4
    assert_breakpoint(@test2_name, 4)
    send_cont # test2:4 -> test:3
  end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
ruby-debug-ide-0.4.11 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide-0.4.10 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide19-0.4.10 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide-0.4.9 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide-0.4.8 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide-0.4.7 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide-0.4.5 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide-0.3.4 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide-0.4.4 test/rd_stepping_breakpoints_test.rb
ruby-debug-ide-0.4.6 test/rd_stepping_breakpoints_test.rb