开发者

Is it possible to do ruby-debug on a remote server?

开发者 https://www.devze.com 2023-02-11 20:15 出处:网络
I\'m trying to debug a remote server. How would I perform ruby-debug and access the console through breakpoints?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消