Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 breakpoints?

like image 258
Trip Avatar asked Aug 01 '26 06:08

Trip


1 Answers

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

like image 126
rocky Avatar answered Aug 02 '26 22:08

rocky