Project

General

Profile

Actions

Feature #18647

open

Non-recursive option for iseq-targeted Tracepoints in ruby 2.6+

Added by hurricup (Alexandr Evstigneev) over 2 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:107972]

Description

I can see that iseq-targeted TracePoints introduced in ruby 2.6 working recursively and there is no API to avoid that, even on C level, because related method is not exported by rubylib.
This may be handy in some cases, but I'd like to be able to put precise tracepoint to the method line (without any child iseqs, like blocks on the same line)

Would be really nice to have some recursive = true argument in the enable method.

Otherwise, to implement some precise breakpoint I need manually to check if topmost user iseq is the expected one. This may be really bad for performance in some cases.

No data to display

Actions

Also available in: Atom PDF

Like0