Project

lita-debug

0.0
No commit activity in last 3 years
No release in over 3 years
Lita plugin debugger
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 4.7
 Project Readme

lita-debug

Build Status Coverage Status

A plugin for debugging Lita interactively, in production.

Installation

Add lita-debug to your Lita instance's Gemfile:

gem "lita-debug"

Configuration

# lita_config.rb

Lita.configure do |config|
  config.handlers.debug.enable_eval = true
  config.handlers.debug.restrict_eval_to = [:admins]
  config.handlers.debug.restrict_debug_to = [:admins, :developers]
end

Usage

Lita > lita debug
---
:server:
  :hostname: minion.local
:room: !ruby/object:Lita::Room
  id: shell
  metadata: {}
  name: shell
:user: !ruby/object:Lita::User
  id: '1'
  metadata:
    name: Shell User
  name: Shell User

Lita > lita eval response.room.name
"shell"
Lita > lita eval robot.name
"Lita"
Lita > lita eval 1+2
3