Class: Readapt::Snapshot
- Inherits:
-
Object
- Object
- Readapt::Snapshot
- Defined in:
- lib/readapt/snapshot.rb,
ext/readapt/monitor.c
Overview
Information about the state of the debugger.
Instance Attribute Summary collapse
- #control ⇒ Symbol
-
#event ⇒ String, Symbol
readonly
The reason for pausing the debugging, e.g., “breakpoint” or “step”.
- #file ⇒ String readonly
- #line ⇒ Integer readonly
- #thread_id ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(thread_id, file, line, event) ⇒ Snapshot
constructor
A new instance of Snapshot.
Constructor Details
#initialize(thread_id, file, line, event) ⇒ Snapshot
Returns a new instance of Snapshot.
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
#control ⇒ Symbol
21 22 23 |
# File 'lib/readapt/snapshot.rb', line 21 def control @control end |
#event ⇒ String, Symbol (readonly)
The reason for pausing the debugging, e.g., “breakpoint” or “step”
18 19 20 |
# File 'lib/readapt/snapshot.rb', line 18 def event @event end |
#file ⇒ String (readonly)
11 12 13 |
# File 'lib/readapt/snapshot.rb', line 11 def file @file end |
#line ⇒ Integer (readonly)
14 15 16 |
# File 'lib/readapt/snapshot.rb', line 14 def line @line end |
#thread_id ⇒ Integer (readonly)
8 9 10 |
# File 'lib/readapt/snapshot.rb', line 8 def thread_id @thread_id end |