Code Monkey home page Code Monkey logo

Comments (16)

MaxPleaner avatar MaxPleaner commented on August 20, 2024 3

This is also useful to skip a line of code in the forward direction.

from byebug.

deivid-rodriguez avatar deivid-rodriguez commented on August 20, 2024 1

Actually, let's leave it open so I remember that a least one user wants this!

from byebug.

deivid-rodriguez avatar deivid-rodriguez commented on August 20, 2024

No, it doesn't. I never implemented the jump command cause it seemed difficult to implement. Sorry.... :(

from byebug.

bronson avatar bronson commented on August 20, 2024

No worries. To me, Byebug as a whole looks really difficult to implement!

Closing since it sounds like there are no immediate plans for a jump command. If ever it shows up I'd certainly use it.

from byebug.

deivid-rodriguez avatar deivid-rodriguez commented on August 20, 2024

By the way, debugger gem includes a jump command so that can be a starting point for someone willing to implement this.

from byebug.

awwaiid avatar awwaiid commented on August 20, 2024

I have started a fork-based timetraveling byebug extension -- here is my branch, but I'm refactoring it into a byebug plugin which I hope to gemify into byebug-timetravel.

awwaiid@a4911d9

from byebug.

deivid-rodriguez avatar deivid-rodriguez commented on August 20, 2024

Interesting. As I understand it, this allows you to "rollback" next commands, right?

from byebug.

lucasldemello avatar lucasldemello commented on August 20, 2024

Would be great if that feature will exist someday 👍

from byebug.

nafaabout avatar nafaabout commented on August 20, 2024

I also want it 👍

from byebug.

george-carlin avatar george-carlin commented on August 20, 2024

+1

from byebug.

Edderic avatar Edderic commented on August 20, 2024

+1

from byebug.

awwaiid avatar awwaiid commented on August 20, 2024

I've continued to work on one approach to this, now extracted out into a pry plugin at https://github.com/awwaiid/pry-timetravel . Recently I've figured out how to write a test suite for it, and am working on auto-snapshotting. It was easier and more general-purpose to work my approach into a pry plugin.

from byebug.

Edderic avatar Edderic commented on August 20, 2024

Cool, @awwaiid. Will check it out!

from byebug.

deivid-rodriguez avatar deivid-rodriguez commented on August 20, 2024

Cool, I'll follow your work!

from byebug.

marcello-telles avatar marcello-telles commented on August 20, 2024

+1

from byebug.

awwaiid avatar awwaiid commented on August 20, 2024

Well as a minor unhelpful update, I ran into a significant issue with the fork-based approach when working on anything that has threads .... which includes Rails which is the main app that I personally would use it on. I haven't gone back and research this in a number of years though. The approach is pretty extreme, so maybe there is a less-insane version of jumping.

from 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.