rails byebug

Gemfile里添加

gem 'byebug'

bundle install

在要打断点的地方写

byebug

byebug -h #帮助

c 放行,入下走
n 单行调适
q 退出进行

启动异步任务推送work:
rails c # 默认为development模式
rails c -e prodution # 生产模式
SendInfoWorker.perform_async(true) 推送
SendInfoWorker.new.perform(true) sidekiq异步debug推送

posted @ 2021-11-22 21:50  HaimaBlog  阅读(96)  评论(0编辑  收藏  举报