是否可以在远程服务器上执行ruby-debug ?

时间:2021-10-20 16:15:10

I'm trying to debug a remote server.

我正在调试一个远程服务器。

How would I perform ruby-debug and access the console through breakpoints?

如何执行ruby调试并通过断点访问控制台?

Is that possible to do and click through the site to activate those breakpoints?

是否有可能通过点击网站来激活这些断点?

2 个解决方案

#1


4  

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.

ruby-debug已经有很长一段时间无法调试了。事实上,Noufal Ibrahim引用的代码使用的是相同的底层通用代码。

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

看到http://bashdb.sourceforge.net/ruby-debug.html远程调试和http://bashdb.sourceforge.net/ruby-debug.html # Out_002dof_002dprocess-execution-options

#2


1  

If you can ssh to the server, you're probably better of running your debugger locally over there.

如果可以ssh到服务器,那么最好在那里本地运行调试器。

Otherwise, you might want to take a look at http://blogs.oracle.com/martink/entry/remote_debugging_debug_whatever_ruby.

否则,您可能需要查看http://blogs.oracle.com/martink/entry/remote_debugging_debug_whatever_ruby。

#1


4  

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.

ruby-debug已经有很长一段时间无法调试了。事实上,Noufal Ibrahim引用的代码使用的是相同的底层通用代码。

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

看到http://bashdb.sourceforge.net/ruby-debug.html远程调试和http://bashdb.sourceforge.net/ruby-debug.html # Out_002dof_002dprocess-execution-options

#2


1  

If you can ssh to the server, you're probably better of running your debugger locally over there.

如果可以ssh到服务器,那么最好在那里本地运行调试器。

Otherwise, you might want to take a look at http://blogs.oracle.com/martink/entry/remote_debugging_debug_whatever_ruby.

否则,您可能需要查看http://blogs.oracle.com/martink/entry/remote_debugging_debug_whatever_ruby。