What if we settle for an API and implement and test it first in the `debug` gem? The `debug` gem does need/has similar functionality for post-mortem debugging. That way, gems like `web-console` can depend on the `debug` standard gem whic...gsamokovarov (Genadi Samokovarov)
As a case study, we may look at Python. They have such an API for 20+ years and I don't think anyone explicitly complained it makes Python slow or dangerous to use. The API is `sys._getframe` (https://docs.python.org/3/library/sys.html#s...gsamokovarov (Genadi Samokovarov)
Yeah, it could be used to implement `Binding.of_caller`, but if we have the proposed API, we may not need actual `Binding.of_caller` as the tools can use `Kernel.caller_locations(debug: true)`. Our caller can be a C Frame in the case of ...gsamokovarov (Genadi Samokovarov)
Hello, I'm the maintainer of the web-console (https://github.com/rails/web-console/) gem, where one of our features is to jump between the frames in which an error occurred. To accomplish this, I currently use the Debug Inspector CRub...gsamokovarov (Genadi Samokovarov)
If you create a CSV from raw content like: csv = CSV.new("h1,h2") You'll get method missing when calling `csv.path` but still, get `true` when you call `csv.respond_to?(:path)`. This tricks 3rd party libraries like carrier...gsamokovarov (Genadi Samokovarov)
Hi, I have a snippet of code that crashes Ruby 2.1.{1,2} every time for me. ~~~ class Exception def set_backtrace_with_extension set_backtrace_without_extension(*args) end
I have a patch introducing the constants YES/NO as aliases of true/false. You can check it out here: https://github.com/gsamokovarov/ruby/compare/trunk...yes-no While I don't expect this to be accepted, I think it can start a discussi...gsamokovarov (Genadi Samokovarov)