Project

General

Profile

« Previous | Next » 

Revision c7550537

Added by ko1 (Koichi Sasada) about 4 years ago

RubyVM.keep_script_lines

RubyVM.keep_script_lines enables to keep script lines
for each ISeq and AST. This feature is for debugger/REPL
support.

RubyVM.keep_script_lines = true
RubyVM::keep_script_lines = true

eval("def foo = nil\ndef bar = nil")
pp RubyVM::InstructionSequence.of(method(:foo)).script_lines