Gemfile里添加
gem 'byebug'
bundle install
在要打断点的地方写
byebug
byebug -h #帮助
c 放行,入下走 n 单行调适 q 退出进行
启动异步任务推送work: rails c SendInfoWorker.perform_async(true) 推送 SendInfoWorker.new.perform(true) sidekiq异步debug推送