powder-rb / powder

Makes Pow even easier. I mean really, really, ridiculously easy
http://git.io/powder
MIT License
1.29k stars 69 forks source link

powder applog with REPL (pry)? #100

Closed jmuheim closed 10 years ago

jmuheim commented 10 years ago

I love POW, and I love using it with POWDER. But I really miss a way to use pry in an easy way with it.

When starting Rails simply with rails s, I can place a binding.pry wherever I want, reload, and then do my REPL business right within Webrick's console.

But with POW, there doesn't seem to be a REPL capable console output: powder applog doesn't halt on binding.pry, it simply displays it and goes on.

I know that I can work around this by doing binding.pry_remote and connect to it using pry-remote, but this simply is to tedious.

Any idea on how to make POW/POWDER work with a REPL?

jmuheim commented 10 years ago

Any update on this?

thomasklemm commented 10 years ago

powder applog is only a wrapper for tail -f log/development.log. A debug shell will never open in the log, which is why you won't see it there. However, you might try powder debug. If this doesn't work, I recommend trying the better_errors gem, which might be a great REPL interface, though not a real debugger.

jmuheim commented 10 years ago

Thanks for your suggestions. I played around quite extensively with the various possibilities, and decided to use webrick again which offers exactly what I want: output in a terminal which can also be used as interface to pry without having to start a new session or something like that.