-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TracePoint.new(:raise) not yet supported #3680
Comments
@stdedos Thanks for the report. It should be possible to support it but from past experience adding support for TracePoint events is a non-trivial amount of work. |
Why I started a discussion also was: Is there "some way" (e.g. listed in https://github.com/ConradIrwin/interception/blob/master/lib/cross_platform.rb) to use as a workaround for now? https://github.com/ConradIrwin/interception is "somewhere in the chain" for https://github.com/ConradIrwin/pry-rescue I don't have strong requirements "to do this" - as long as it is documented missing. |
I think there is no way currently. $ ruby -e 'TracePoint.trace(:raise) { |tp| p tp }; 1 / 0'
#<TracePoint:raise -e:1>
-e:1:in `/': divided by 0 (ZeroDivisionError)
from -e:1:in `<main>' |
Discussed in #3679
Originally posted by stdedos October 2, 2024
I am trying to build a quick pipeline for https://github.com/ConradIrwin/interception (stdedos/interception@4ff277c), but it seems that "no truffleruby variant" supports
TracePoint.new(:raise)
?https://github.com/stdedos/interception/actions/runs/11141771488/job/30963350904#step:5:19
I am not very involved with ruby - but you do claim:
So I thought it is not far-fetched to at least ask for some quick tips 🙏
The text was updated successfully, but these errors were encountered: