Comments (16)
This is also useful to skip a line of code in the forward direction.
from byebug.
Actually, let's leave it open so I remember that a least one user wants this!
from byebug.
No, it doesn't. I never implemented the jump
command cause it seemed difficult to implement. Sorry.... :(
from byebug.
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.
By the way, debugger
gem includes a jump
command so that can be a starting point for someone willing to implement this.
from byebug.
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.
from byebug.
Interesting. As I understand it, this allows you to "rollback" next
commands, right?
from byebug.
Would be great if that feature will exist someday 👍
from byebug.
I also want it 👍
from byebug.
+1
from byebug.
+1
from byebug.
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.
Cool, @awwaiid. Will check it out!
from byebug.
Cool, I'll follow your work!
from byebug.
+1
from byebug.
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)
- byebug tends to get "stuck" in the debugger in Windows Terminal with tabs HOT 2
- Provide a way to exit the program without exiting the Rails Console
- Segmentation Fault in Ruby 3.0 Rspec HOT 5
- Only show program files in backtrace (excluding gems)
- [macOS][11.4] ERROR: Error installing byebug 11.1.3 HOT 3
- [macOS][12.0] ERROR: Error installing byebug 11.1.3 HOT 3
- Default port in byebug CLI
- Test failure with ruby 3.0.2 HOT 1
- Is it possible to make post_mortem the default behaviour?
- Byebug does not work when called in a background process group
- byebug-6 compile issue
- Exceptions when running `frame` or `backtrace` on a Sinatra application
- Arguments for `where`
- BuildError: ERROR: Failed to build gem native extension byebug 8.2.1 HOT 5
- cannot load such file -- irb (LoadError)
- Homebrew Formula error: No available formula with the name "formula". Did you mean foreman? Error: Broken pipe
- Build dependency on chandler, which is archived/unmaintained HOT 1
- Byebug error parses a comma in a string as an endinger for a line of code HOT 1
- Commands with no description HOT 2
- Byebug is not installing in mac m2 version 11.0.1 HOT 2
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 byebug.