Skip to content
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 and step seems to works as same #40

Closed
GCorbel opened this issue Aug 20, 2013 · 7 comments
Closed

next and step seems to works as same #40

GCorbel opened this issue Aug 20, 2013 · 7 comments

Comments

@GCorbel
Copy link

GCorbel commented Aug 20, 2013

Hello,

When I'm using pry-debugger, in a rails application, I have this :

    9: def new
   10:   painting.address = current_user.address
   11:   painting.postal_code = current_user.postal_code
   12:   binding.pry
=> 13:   painting.city = current_user.city
   14:   painting.country = current_user.country
   15:   painting.phone = current_user.phone
   16: end

If I understand, when I type "next", it should go to the line 14 but it go here :

    47: def painting
 => 48:   @painting
    49: end

It is on the same file so it can be normal but, If I type "next" again I go to another file.

Is there something wrong?

Thanks!

@nixme
Copy link
Owner

nixme commented Aug 20, 2013

Are you on Ruby 2.0? This seems like a duplicate of #34 and a problem with debugger upstream.

@GCorbel
Copy link
Author

GCorbel commented Aug 20, 2013

I updated ruby to the version 2.0.0-p247 nothing changed.

I used https://github.com/deivid-rodriguez/pry-byebug and it's worse. It stop at this line : https://github.com/deivid-rodriguez/pry-byebug/blob/master/lib/pry-byebug/processor.rb#L20.

The only solution is to wait?

@nixme
Copy link
Owner

nixme commented Aug 21, 2013

All of Ruby 2.0, not any specific patchlevel, has this issue. @cldwalker is looking for patches if you're up for it – see cldwalker/debugger#89

@nixme nixme closed this as completed Aug 21, 2013
@deivid-rodriguez
Copy link

Hi @GCorbel. If you want a solution for pry-byebug please submit a bug report there with instructions on how to reproduce the issue. I'll fix it if I can.

@GCorbel
Copy link
Author

GCorbel commented Aug 21, 2013

Thanks, I found my issue. I was using pry-plus. In the gem, there this other gems included. There is probably an issue between pry-byebug and pry-exception_explorer or pry-rescue. It may be because there is the word "thrown" on the comments???

I'm not sure. I can probably investigate more deeper but I don't have the time right now.

Thanks for your help!

@deivid-rodriguez
Copy link

Hi @GCorbel, I'm sorry I missed this message. I don't know what you mean by

It may be because there is the word "thrown" on the comments???

Which comments? In any case, I don't think that would make any difference.

Salud!

@GCorbel
Copy link
Author

GCorbel commented Aug 28, 2013

Yes, you're probably write. I was wrong. Now, I use only pry-nav pry-byebug et pry-rails and I have the same problem. I will submit an issue in pry-byebug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants