*** run `sudo sysctl kernel.msgmnb=1048576` to prevent losing events (currently: 16384 bytes)
/home/koyam/.rbenv/versions/debug/lib/ruby/gems/3.3.0+0/gems/rbtrace-0.5.0/lib/rbtrace/rbtracer.rb:326:in `send_cmd': uninitialized constant RBTracer::RbTrace (NameError)
if msg.bytesize >= RbTrace::BUF_SIZE
^^^^^^^
from /home/koyam/.rbenv/versions/debug/lib/ruby/gems/3.3.0+0/gems/rbtrace-0.5.0/lib/rbtrace/rbtracer.rb:210:in `attach'
from /home/koyam/.rbenv/versions/debug/lib/ruby/gems/3.3.0+0/gems/rbtrace-0.5.0/lib/rbtrace/rbtracer.rb:91:in `initialize'
from /home/koyam/.rbenv/versions/debug/lib/ruby/gems/3.3.0+0/gems/rbtrace-0.5.0/lib/rbtrace/cli.rb:428:in `new'
from /home/koyam/.rbenv/versions/debug/lib/ruby/gems/3.3.0+0/gems/rbtrace-0.5.0/lib/rbtrace/cli.rb:428:in `run'
from /home/koyam/.rbenv/versions/debug/lib/ruby/gems/3.3.0+0/gems/rbtrace-0.5.0/bin/rbtrace:5:in `<top (required)>'
from /home/koyam/.rbenv/versions/debug/bin/rbtrace:25:in `load'
from /home/koyam/.rbenv/versions/debug/bin/rbtrace:25:in `<main>'
Background
I noticed rbtrace throws the following error:
So, I checked the latest commit.
I realized that the commit contains
RBTrace
andRbTrace
, and the correct variant isRBTrace
.Notes
After fixing that, it works.