Adding debugger gem and fixing deprecated method