mercredi 25 novembre 2015

pry gem is not working on ruby 2 & it got stuck

Let me write a simple example

a = 2

b = 6

c = a + b
puts c
require 'pry-debugger'
binding.pry
puts c

when I do this

    34: 
    35: c = a + b
    36: puts c
    37: require 'pry-byebug'
    38: binding.pry
 => 39: puts c

[1] pry(main)> puts b

After this puts b, I am not seeing any result at all, no matter how many times I do it. Why is that, and how should I fix this?

Aucun commentaire:

Enregistrer un commentaire