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

Pry opens for no apparent reason #1416

Closed
aeonaut opened this issue Apr 20, 2015 · 2 comments
Closed

Pry opens for no apparent reason #1416

aeonaut opened this issue Apr 20, 2015 · 2 comments

Comments

@aeonaut
Copy link

aeonaut commented Apr 20, 2015

Suddenly pry has started opening whenever this code is run, which is all the time:

From: /Users/rct/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/temple-0.6.10/lib/temple/utils.rb @ line 19 Temple::Utils#escape_html_safe:

    18: def escape_html_safe(html, safe = true)
 => 19:   safe && html.html_safe? ? html : escape_html(html)
    20: end

[1] pry(Temple::Utils)> breakpoints
No breakpoints defined.
[1] pry(Temple::Utils)> break --disable-all
No breakpoints defined.

As you can see from the console printout, there is no binding.pry in that file, nor does Pry-debugger think there are any breakpoints defined. (Not sure if this is an issue with Pry or Pry-debugger, but I'm trying here first.) Just updated all gems and rebooted server, to no effect. How do I clear this phantom breakpoint?

@aeonaut
Copy link
Author

aeonaut commented Apr 20, 2015

Resolved, kind of -- the binding.pry was in a ruby-slim template, which calls the gem in question:

.title
  = binding.pry
  - if on_path? survey_path(survey)
      = survey.title

Normally putting binding.pry in a slim template opens pry at the correct line inside the template, as expected; it would be nice to know why this is not happening here.

@0x1eef
Copy link
Contributor

0x1eef commented Aug 21, 2015

hi @aeonaut I will guess this is the same problem as your last issue. Please try to remove pry-byebug from Gemfile, and reopen if it's still an issue. Thanks.

@0x1eef 0x1eef closed this as completed Aug 21, 2015
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

2 participants