Module: TraceLineNumbers

Module | TraceLineNumbers
In: | lib/tracelines.rb lib/tracelines.rb

require ‘ruby-debug’ ; Debugger.start(:post-mortem => true)

### Methods

lnums_for_file lnums_for_file lnums_for_str_array lnums_for_str_array

### Public Instance methods

lnums_for_file(file)

Return an array of lines numbers that could be stopped at given a file name of a Ruby program.

lnums_for_file(file)

Return an array of lines numbers that could be stopped at given a file name of a Ruby program.

lnums_for_str_array(string_array, newline='')

Return an array of lines numbers that could be stopped at given a file name of a Ruby program. We assume the each line has \n at the end. If not set the newline parameters to \n.

lnums_for_str_array(string_array, newline='')

Return an array of lines numbers that could be stopped at given a file name of a Ruby program. We assume the each line has \n at the end. If not set the newline parameters to \n.

[Validate]