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推送
[Haima的博客]
http://www.cnblogs.com/haima/