debug.lua: a terminal based debugger for lua
What is it?
debug.lua is a terminal based standalone frontend for mobdebug. Because it is terminal based, it is navigated only with the keyboard, but it does feature source navigation and a display for expressions that change as you step through the source.
It has been tested on Linux and Mac OS X with lua 5.1 and 5.2. The debuggee can be anything that is supported by mobdebug.
What's new in version 0.9
- removed (R)estart command, misunderstood what it does.
- no longer exits when the client exits, instead returns to the startup screen. Exits only on q command.
- d now also prefills input with db
if current line has a breakpoint
- made colors configurable (in a way... you need to edit a table in the source code)
- added optional quit on client exit
- added support for lua skripts with #! at the start
- added search in current source file
If you want to know a little more, you can check out the original mobdebug documentation and code.
There is also a mercurial repository at https://hg.tset.de/public/debug.lua/ which is read-only, but also gets changes I make between the releases.
debug.lua module and all accompanying documentation and additional source code is released under the MIT license.
Copyright (c) 2014 Gunnar Zötl
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
If you have anything to say about this, comments, bug reports, whatever, feel free to email them to