Hello,
Currently we use the "byebug" Ruby debugger [1] in YaST [2], however the latest
Ruby 3.1 includes [3] a new debugger "debug" [4] in the standard library.
I have quickly checked the provided features and it seems it provides the same
features as the byebug gem, including the remote debugging which is necessary
for
YaST. (We need to run the debugger frontend in a different process because it
cannot
use the current terminal if it is used by the ncurses UI or not available at
all like
in an VNC installation.)
Byebug works fine with Ruby 3.1 but in the long term we should switch to the
standard
debugger to avoid external dependency.
The new debugger is actually a standard Ruby gem, I thought we could backport
it to
SLE so we could use only one implementation consistently. Unfortunately it
needs Ruby
version 2.6 or higher so that's not possible. :-(
So my plan is to spend some innovation time later and use either "byebug" or
"debug"
debugger in YaST depending on what is currently available. If you are
interested in
this and would like to join then just ping me...
Ladislav
[1] https://github.com/deivid-rodriguez/byebug
[2]
https://github.com/yast/yast-ruby-bindings/blob/master/src/ruby/yast/debugger.rb
[3] https://www.ruby-lang.org/en/news/2021/12/25/ruby-3-1-0-released/
[4] https://github.com/ruby/debug
--
Ladislav Slezák
YaST Developer
SUSE LINUX, s.r.o.
Corso IIa
Křižíkova 148/34
18600 Praha 8