I'm trying to debug a remote server.
How would I perform ruby-debug and access the console through breakpoints?
Is that possible to do and click through the site to activate those breakpoi开发者_如何学编程nts?
ruby-debug has had out-of-process debugging for a long while. In fact the code mentioned in that Noufal Ibrahim cites, is using the same underlying common code.
However I've just added some documentation describing how it works in the reference manual.
See http://bashdb.sourceforge.net/ruby-debug.html#Remote-Debugging and http://bashdb.sourceforge.net/ruby-debug.html#Out_002dof_002dprocess-execution-options
If you can ssh to the server, you're probably better of running your debugger locally over there.
Otherwise, you might want to take a look at http://blogs.oracle.com/martink/entry/remote_debugging_debug_whatever_ruby.
精彩评论