-
-
Notifications
You must be signed in to change notification settings - Fork 325
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
'next' command not stepping over a line? #16
Comments
That's very weird... The best thing could be if you could provide me with a sample application or a gist or something so I can reproduce the problem myself. In any case, I might be able to better understand the problem if you print the stack before every command using the byebug's command Thanks for your report man! |
Thanks for testing this @eric-hu ! |
@skyjumper Any updates on this? Are you still getting this issue? |
Sorry, I haven't been working on this project... will get more info to you soon |
Great, thanks! |
I am seeing this too in Rails 4 (saw it before upgrade in Rails 3.2 as well). Really kills the usefulness of the debugger. |
I'm aware of this and I hope to work on it soon. A new bug fix has been recently released for the TracePoint API in ruby-core (https://bugs.ruby-lang.org/issues/8622), so this should happen less often in ruby 2.1 or in the next 2.0 patch level. But I've still seen the bug even with the patch applied. A minimal example to reproduce the bug would be really useful. |
This issue was solved for me when I upgraded ruby to 2.0.0-p353 today as David said. |
I just upgraded to 2.0.0-p353 and I'm still not getting proper "next" behavior. It's stepping me into rails code regardless of "next" vs. "step". |
Sorry for quoting my previous comment but... all quiet on the Western Front |
I am seeing this problem as well with ruby 2.0.0p353. It's not rails based code fyi. Both debugger and byebug are doing this. |
Another issue in ruby trunk might be related to this. A patch has been already submitted and it (might) be backported to ruby 2.0: https://bugs.ruby-lang.org/issues/9321 |
Thanks to https://bugs.ruby-lang.org/issues/9321 I've been able to isolate the bug (or one at least one of them) affecting the I've committed a failing test in 13a3268 |
The fix for the issue has been released and makes the failing test pass! Anybody getting this issue, please give the patch a try to check whether this has been definitely resolved. Instructions for
|
Deivid, Blindly following your recipe, I get the following error:
Looks like rvm is trying to download 2.1.0. Adding --disble-binary and |
Follow the other suggestion, |
Ah, that worked. Thanks. |
What is it that worked? The instructions to get the patch installed or the patch itself? |
Installing the patch solved the next/step confusion problem for me. Thanks for the info. |
Thanks for trying it! Notice though that the patch shouldn't be necessary for ruby >= 2.1 However I think the issue is still there cause the test is still failing sometimes... :( |
@ko1, I'm still hitting issue https://bugs.ruby-lang.org/issues/9321... I have no idea why if it's supposed to be fixed in ruby core... Your help would be appreciated. Thanks a lot. |
(2014/03/31 7:32), David Rodríguez wrote:
Ah. you need re-open a ticket. Anyway, I'll check it. // SASADA Koichi at atdot dot net |
Please, disregard my previous messages. The bug is indeed fixed in ruby-head, it's just not present in 2.0 and 2.1. I asked for it to be backported, but in any case this should work fine in 2.2 @connertp, you do need the patch actually, thanks for confirming that it works! |
Deivid, This issue makes me want to scream. You seem to be the only one paying My question is, why are the ruby developer not more worried about the quality I'm sorry for using your github forum to rant, but this is the only place I What can we do light a fire under the collective asses of the ruby devs to get Getting desperate. |
Amen, brother. Lack of a quality debugger really sucks the joy out of ruby coding for me. I would happily pay a bounty if someone close to the issue would be willing to get this stuff to a more useable state. From: Daniel Doherty notifications@github.com Deivid, This issue makes me want to scream. You seem to be the only one paying My question is, why are the ruby developer not more worried about the quality I'm sorry for using your github forum to rant, but this is the only place I What can we do light a fire under the collective asses of the ruby devs to get Getting desperate. — |
Just wanted to say thank you for all the hard work around this. Updated to ruby-2.0.0-p576 and everything is working like a dream. Great work, much appreciated! |
Appreciated @smoovej, I'm so happy about this! 😄 😄 😄 |
I'm also getting this issue on Ruby 2.1.0. Any news regarding the solution? |
Oh, just saw the recommended Ruby versions 👍 I'll upgrade to 2.1.3. |
David, Thanks a million for getting this done. I nominate this as the best "feature" of Ruby for 2014. |
You are welcome @ddoherty03, but it's not me to thank but ruby-core developers, specially @ko1. I only spotted the specific bugs and opened the issues, but he solved them! |
@deivid-rodriguez |
Hi @mkanoor, thanks for the feedback. I don't know what backports 2.1.3 migth be missing, but if 2.1.5 works fine I think that should be enough. I'll just update the README recommending 2.1.5 or older. Regarding missing backports to 2.0, those 2 backports should be enough but not sure how easy it will be to apply them manually. It seems that there was some problems backporting them, that's why the issues are stalled. |
Referencing #85 |
I'm getting inconsistent behavior with 'next' with ruby 2.1.5p273 and byebug/byebug-pry master branches. Sometimes it skips to the next line, sometimes it goes elsewhere. Same with ruby 2.1.1p76 and byebug 3.5.1 release version. Anyone have a known working combination of byebug and ruby 2.1? |
That is very weird, the only thing I can think of is that Rails 3.0.10 included code affected by #103 Could you create a sample repo reproducing the problem? Thanks. |
I'm seeing this problem again with rails 5.2.2.1 and ruby 2.6.2 |
I'm also seeing this problem again with Rails 5.0.2 and ruby 2.6.3 and ruby-debug-ide. 'Run to cursor' works fine if you position the cursor over the next line, but the 'next' command just does a 'continue'. |
Also seeing this, surprised to find that I'm not the crazy one Rails 5.2.2 |
I am also seeing a problem in Ruby 2.6.3--at times the 'next' command will behave like 'continue'. If I roll back to Ruby 2.5.3 (and keep everything else the same) all seems to be fine. Here's my Gemfile.lock. Let me know if any other info would help.
|
Thanks for a great job! |
Seeing a similar issue with ruby 2.6.3 and byebug 11.0.1, rspec 3.8.0, and rails 5.2.3 When I use example in an rspec:
|
I'm sorry you're all having this issue. If I can get a repro, I'll have a look at it. These bugs are most of the times issues in the underlying TracePoint API. One thing you can try is giving ruby 2.7.0-preview1 a try, maybe those bugs are fixed there. |
@deivid-rodriguez I couldn't reproduce this problem in my code using byebug, but I have a very similar problem in debase with ruby 2.6 (see ruby-debug/debase#75) and 2.7.0-preview1 does seem to fix the problem there. |
Wanted to echo @DeegC and @jacquescrocker 's comments. We are also seeing this on
Edit: Just reporting back, updating to |
I guess it's clear that there was clearly an issue with byebug on |
That is great to know that |
I can confirm that 2.6.5 fixes this, and that the issue still exists in ruby 2.5.7p206 |
Ruby |
Please, post reproduction instructions as part of a separate issue if you want this looked at. Thanks. |
I cannot reliably reproduce a setup. Sometimes it happens, sometimes it doesn't. When it does it seems to consistently happen on the same line. Currently experiencing this with Ruby 2.7.1p92, rails (6.0.3.2), byebug (11.1.3), and pry-byebug (3.9.0). I'll hit a byebug breakpoint and start stepping with |
A coworker of mine that was also experiencing this said he got around it by using |
This appears to be related to ruby/ruby@3e02cd5 and #719 with Ruby 2.7.1 and appears to be fixed in upstream Ruby (upcoming version 2.7.2) |
next is not jumping to next line .
|
Apologies if I'm not understanding something, but it looks like 'next' isn't working right... it's stepping into Rails' association functions. I'm also having a similar problem with the 'debugger' gem:
'next' in byebug:
'step' in byebug:
'next' in debugger:
'step' in debugger:
The text was updated successfully, but these errors were encountered: