-
Notifications
You must be signed in to change notification settings - Fork 4
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
Thoughts on how to solve for debugging tests? #2
Comments
There is a check for an IRB context, but I wonder if it doesn't detect whatever is needed for pry. Is there another context to check you can look into? https://github.com/tendersearls/tldr/blob/main/lib/tldr/runner.rb#L28-L34 I wonder if you could check for something around |
Spent some time looking through the pry source to see if there was a straight-forward way (like it does with |
LOL! I'm not saying to do this, but probably could use Something awful like pry_running = Thread.list.any? { _1.thread_variable_get(:pry_critical_section).to_i > 0 } Again, super LOL! |
Yes, we look out for IRB sessions but not for Pry, because AFAICT in I'm genuinely curious about what folks who are still using Pry with intention (as opposed to force of habit) in Ruby versions ~3.1 and later are getting out of it that IRB can't do. I've dropped Pry use entirely as a result, as well as that in recent years Pry maintenance has slowed way down and has resulted in more than a few bugs |
Honestly, (and maybe this is just me) - but for whatever reason the color schemes I use and the autocomplete with IRB just do not mix (note: I'm partially colorblind). It's what has kept me going back to I've tried both Darkula, and Catppuccin (current) I've tried to figure out a way to fix this - but haven't had any luck thus far ( Update: I've submitted an issue with a question regarding how to fix this on the IRB project directly. |
@thewatts thanks for submitting the issue to the IRB project. Glad to see they seem to be on it |
Copying my response from the IRB issue for exposure:
As a short-term solution, you can disable IRB's completion feature with:
|
Hi there! 👋
I watched your pairing episode and started a sample project to poke around with
TLDR
. Really cool project!Maybe this is just me - but I tend to do a lot of introspection to poke around in an object, test, etc - and pry is my debugger of choice.
To my initial surprise, throwing a
binding.pry
in my test - while it halted execution, the time bomb exploded shortly after. Upon digging into the code - this makes sense.Wondering - would it be helpful to have a debugging flag? (similar to
ENV["CI"]
)?The text was updated successfully, but these errors were encountered: