A wrapper for debugger.lua for the Löve game engine.
MIT License
An effective but lightweight interactive debugger for the Löve game engine.
The debugger screen will appear whenever you call the debugger object or crash. (More info on that here) It then gives you the chance to inspect your variables, modify them, call functions, evaluate expressions, step through the code, etc. It even has support for displaying the code as you step through it to help you pinpoint bugs faster.
debugger.lua
, love-debugger.lua
, and VeraMono.ttf
into your project.dbg = require 'love-debugger'
If you run Löve from the command line, you can also use the vanilla debugger.lua. love-debugger.lua
just provides a an in-engine console to use to make it a little friendlier. Power users might prefer the vanilla debugger since it lets them use the more powerful features of a regular terminal. While it would work as-is, you'll probably want to set Löve's debug hook to invoke the debugger, and set the right stack depth.
dbg = require 'debugger'
function love.errorhandler(msg) dbg.error(msg, 3) end
debug
library implementation.Bitsteam Vera Font License here: https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts