Giter VIP home page Giter VIP logo

Comments (7)

deivid-rodriguez avatar deivid-rodriguez commented on May 30, 2024

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.

aoyama-val avatar aoyama-val commented on May 30, 2024

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.

deivid-rodriguez avatar deivid-rodriguez commented on May 30, 2024

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.

aoyama-val avatar aoyama-val commented on May 30, 2024

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.

deivid-rodriguez avatar deivid-rodriguez commented on May 30, 2024

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.

vincentwoo avatar vincentwoo commented on May 30, 2024

Any progress on bringing post-mortem functionality through to pry-byebug from byebug?

from pry-byebug.

deivid-rodriguez avatar deivid-rodriguez commented on May 30, 2024

Not really, sorry.

from pry-byebug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.