I've put the code which processes document generation to lib/parser folder in my Rails application. But now I can't debug that code: neither binding.pry nor byebug have an effect. Raising exceptions also doesn't show up neither in logs nor in rails server's stdout channel. Is there any way to fine-tune it, or to debug it I have to put it somewhere else? 
The module itself is included in controller with
require Rails.root.join("lib/parser/parser.rb")
 
    