Sha256: ec6687ffc9b1c6c38567871f46c406bc62aad667a46c32b8126cdc85d4f8a715

Contents?: true

Size: 919 Bytes

Versions: 58

Compression:

Stored size: 919 Bytes

Contents

require 'debase/rbx/frame'

module Debase
	class Context
    @@max_thread_num = 1
    attr_reader :thread, :thnum

    def initialize(thread)
      @thread = thread
      @thnum = @@max_thread_num
      @@max_thread_num = @@max_thread_num + 1
    end

    def frame_file(frame=0)
      @frames[frame].file
    end

    def frame_line(frame=0)
      @frames[frame].line
    end

    def frame_binding(frame=0)
      @frames[frame].binding
    end

    def frame_self(frame=0)
      @frames[frame].self
    end

    def stack_size
      @frames.size
    end

    def fill_frame_info(locations)
      @frames = []
      locations.each do |loc|
        @frames << Frame.new(loc)
      end
      @frames
    end

    def clear_frame_info
      @frames = nil
    end

    def stop_reason
      :breakpoint
    end

    def ignored?
      thread.is_a? DebugThread
    end

    def dead?
      !@thread.alive?
    end
	end
end

Version data entries

58 entries across 47 versions & 3 rubygems

Version Path
debase-0.2.7 lib/debase/rbx/context.rb
debase-0.2.6 lib/debase/rbx/context.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-0.2.5.beta2/lib/debase/rbx/context.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/debase-0.2.5.beta1/lib/debase/rbx/context.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/debase-0.2.5.beta1/lib/debase/rbx/context.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb
debase-0.2.5.beta2 lib/debase/rbx/context.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/debase-0.2.4.1/lib/debase/rbx/context.rb