cldwalker / debugger

port of ruby-debug that works on 1.9.2 and 1.9.3
BSD 2-Clause "Simplified" License
846 stars 80 forks source link

Pry & Debugger #137

Closed mperejda closed 9 years ago

mperejda commented 9 years ago

Using the pry & debugger gems together. Installed separately.

Scenario: require './method.rb' in pry. Test a method. Method fails test.

Edit method.rb file and update in pry w/ load './method.rb' the text shown by the debugger will NOT reflect your changes but WILL run the new code and pry will work accordingly.

reset pry and require './method' resolves the issue but is slow.

Is there a better way or a fix?

cldwalker commented 9 years ago

Thanks for reporting your issue! This is one of my 12 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.

cldwalker commented 9 years ago

If you're using ruby 2.X, debugger isn't compatible. If using 1.9.X, check out https://github.com/nixme/pry-debugger. If neither works out, you'll have better luck asking on pry issues since I don't know anything about it. Hope that helps.