Comments (7)
Yes, pry-byebug
is incompatible with pry-stack_explorer
or any plugins making use of it. byebug
already provides the functionality pry-rescue
offer so the solution I'd like for this issue is to bring that functionality through byebug
.
I'll leave this open as a remainder.
from pry-byebug.
Hi.
Does byebug
already have "Rescue unhandled exceptions functionality"? How can I make it work?
Also, byebug
's frame
output format is pretty different from that of pry-rescue
's show-stack
. show-stack
lists all frames up to the top, so it's more informative. Is is possible to implement it in byebug
?
[5] pry(main)> show-stack
Showing all accessible frames in stack (6 in total):
--
=> #0 ccc <Object#ccc()>
#1 [block] block in ccc <Object#ccc()>
#2 [method] ccc <Object#ccc()>
#3 [method] bbb <Object#bbb()>
#4 [method] aaa <Object#aaa()>
#5 [main] <main>
[6] pry(main)> frame
#0 ccc <Object#ccc()>
in main @ hoge.rb:23
from pry-byebug.
Hi @aoyama-val, thanks for your comments.
byebug
does have the "rescue unhandled exceptions" functionality. You have to enable the post_mortem
option through set post_mortem
. But, there are some issues with it in rubies >= 2.2.4, see deivid-rodriguez/byebug#165. I'm not sure whether it's totally broken or not, you can try.
Regard the way of showing the stack, you're mistaking the frame
command with the bt
(or backtrace
or where
command). That's the correct way of showing the full stack.
from pry-byebug.
Hi @deivid-rodriguez, thanks for the information.
I gavepost_mortem
a quick try with Ruby 2.3.0, and I didn't notice any failure. So it seems not broken totally.
byebug
has bt/backtrace/where
commands, but pry-byebug
does NOT. So we cannot use them in a pry session. Am I missing something?
from pry-byebug.
You're welcome! I'm glad the good old post-mortem
mode is still usable :)
Regarding your second comment, yes, you're right. pry-byebug
needs a command to show the full stack. I thought you were aware of it since you mentioned byebug
's frame
command in your first message (which exists too). Now I see you meant pry-byebug
's frame
command.
In any case, feel free to work on adding this new show-stack
command!
from pry-byebug.
Any progress on bringing post-mortem functionality through to pry-byebug from byebug?
from pry-byebug.
Not really, sorry.
from pry-byebug.
Related Issues (20)
- It's possible to start a REPL session passing a command? HOT 1
- Loading pry-byebug on Archlinux fails with "cannot load such file -- irb" HOT 1
- Newest version of Pry breaks pry-byebug HOT 15
- Pry Byebug specifies an older version of Pry HOT 1
- Deprecation warnings in Ruby 2.7 HOT 2
- Pry "next" alias does not work
- Any plans for a new release? HOT 4
- less: unrecognized option: X HOT 1
- PR proposition : Deprecated - Pry.config.control_d_handler HOT 6
- Repeated newlines in multi-line strings are ignored
- NameError: undefined local variable or method `text' for #<PryByebug::BreakCommand HOT 2
- New release? HOT 2
- Deprecation warnings Pry v 0.14.1 on Ruby v 3.1.1 HOT 1
- Relax restriction for byebug version HOT 5
- The version 3.10.0 breaks rails console HOT 8
- Build failure with ruby-pry-byebug version 3.9.0-1
- Run error using Ruby 3.2 HOT 1
- Deprecation on Ruby 3.2.2
- Compatibility Inquiry: pry-byebug 3.10.1 with Ruby 3.3.0
- Question: Is there a recommended way of requiring the gem for test but not CI?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pry-byebug.