https://github.com/deftsp/mobdebug-mode.git
git clone 'git://github.com/deftsp/mobdebug-mode.git'
This is the MobDebug mode package for Emacs. Its use should be mostly self-explanatory if you're accustomed to Emacs.
mobdebug.sh
to your PATH directory such as ~/bin/mobdebug.sh
.#!/bin/sh
MOBDEBUG_PATH=~/opt/MobDebug/src/?.lua
eval "`luarocks path`"
export LUA_PATH="$MOBDEBUG_PATH;$LUA_PATH"
lua -e "require('mobdebug').listen()"
.emacs
:(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp/mobdebug-mode"))
(eval-after-load "lua-mode"
'(progn
(require 'mobdebug-mode nil t)
;; if you prefer evil mode
(setq mobdebug-use-evil-binding t))