Class: Readapt::Snapshot

Inherits:
Object
  • Object
show all
Defined in:
lib/readapt/snapshot.rb,
ext/readapt/monitor.c

Overview

Information about the state of the debugger.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(thread_id, file, line, event) ⇒ Snapshot

Returns a new instance of Snapshot.

Parameters:

  • thread_id (Integer)
  • binding_id (Integer)
  • file (String)
  • line (Integer)
  • method_name (Symbol)
  • event (String, Symbol)
  • depth (Integer)


30
31
32
33
34
35
36
# File 'lib/readapt/snapshot.rb', line 30

def initialize thread_id, file, line, event
  @thread_id = thread_id
  @file = file
  @line = line
  @event = event
  @control = :pause
end

Instance Attribute Details

#controlSymbol

Returns:

  • (Symbol)


21
22
23
# File 'lib/readapt/snapshot.rb', line 21

def control
  @control
end

#eventString, Symbol (readonly)

The reason for pausing the debugging, e.g., “breakpoint” or “step”

Returns:

  • (String, Symbol)


18
19
20
# File 'lib/readapt/snapshot.rb', line 18

def event
  @event
end

#fileString (readonly)

Returns:

  • (String)


11
12
13
# File 'lib/readapt/snapshot.rb', line 11

def file
  @file
end

#lineInteger (readonly)

Returns:

  • (Integer)


14
15
16
# File 'lib/readapt/snapshot.rb', line 14

def line
  @line
end

#thread_idInteger (readonly)

Returns:

  • (Integer)


8
9
10
# File 'lib/readapt/snapshot.rb', line 8

def thread_id
  @thread_id
end