Skip to content

Commit 4ed99d7

Browse files
committed
bub
1 parent efbbba9 commit 4ed99d7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎v4-cokapi/backends/ruby/pg_logger.rb‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# - support recursive calls with function frame ids
1616
# - maybe i need a stupid C extension to expose the pointer address of
1717
# each frame object in the interpreter?!? ugh that would be a giant pain
18+
# - maybe just modify this file to expose the 'cfp' pointer?
19+
# https://github.com/banister/binding_of_caller/blob/master/ext/binding_of_caller/binding_of_caller.c
1820
#
1921
# Limitations:
2022
# - no support for (lexical) environment pointers, since MRI doesn't seem to
@@ -89,6 +91,9 @@ def self.iseq_local_variables iseq
8991
lvs
9092
end
9193

94+
# TODO: use binding.of_caller(1) and get frame_type and
95+
# frame_description properties to print out frame names
96+
9297
# adapted from https://github.com/ko1/pretty_backtrace/blob/master/lib/pretty_backtrace.rb
9398
RubyVM::DebugInspector.open do |dc|
9499
locs = dc.backtrace_locations

0 commit comments

Comments
 (0)