Class Debugger::Context
In: lib/ruby-debug-base.rb
ext/ruby_debug.c
Parent: Object

Document-class: Context

Summary

Debugger keeps a single instance of this class for each Ruby thread.

Methods

External Aliases

frame_binding -> __c_frame_binding

Public Instance methods

Returns a context-specific temporary Breakpoint object.

Returns true if context doesn‘t represent a live context and is created during post-mortem exception handling.

Returns frame‘s argument parameters

Returns the real class of the frame. It could be different than context.frame_self(frame).class

Returns the sym of the called method.

Returns the line number in the file.

Returns frame‘s local variables.

Returns the sym of the called method.

Returns self object of the frame.

Returns the ignore flag for the current context.

Resumes the thread from the suspended mode.

Sets a context-specific temporary breakpoint, which can be used to implement ‘Run to Cursor’ debugger function. When this breakpoint is reached, it will be cleared out.

source is a name of a file or a class. pos is a line number or a method name if source is a class name. condition is a string which is evaluated to true when this breakpoint is activated.

Returns the size of the context stack.

Stops the current context after a number of steps are made. force parameter (if true) ensures that the cursor moves from the current line.

Steps over a steps number of times. Make step over operation on frame, by default the current frame. force parameter (if true) ensures that the cursor moves from the current line.

Stops when a frame with number frame is activated. Implements up and down commands.

Stops the current context after a number of steps are made. force parameter (if true) ensures that the cursor moves from the current line.

Returns the reason for the stop. It maybe of the following values: :initial, :step, :breakpoint, :catchpoint, :post-mortem

Suspends the thread when it is running.

Returns true if the thread is suspended by debugger.

Returns the context‘s number.

Returns a thread this context is associated with.

Returns the tracing flag for the current context.

Controls the tracing for this context.

[Validate]