Very Simple Lua Debugger based on RemDebug
Posted: Fri May 20, 2011 10:11 am
After taking a look at RemDebug I decided to write a small gui and try if I can use this within Löve.
The result is a small and very basic graphical lua debugger based on a modified version of RemDebug.
https://github.com/hagish/lua-debugger
It is crossplatform but I only did the build scripts for linux.
---
Some steps to try it out:
* (ubuntu 11.04) apt-get install liblua5.1-filesystem-dev liblua5.1-socket-dev git cmake g++ libpoco-dev libboost-all-dev libwxbase2.8-dev libwxgtk2.8-dev
* git clone git://github.com/hagish/lua-debugger.git
* git clone git://github.com/lovelyrpgcommunity/A-Whiff-of-Steam.git
* cd lua-debugger/build
* cmake .
* cd ..
* ./lua-debugger
* (another terminal) cd A-Whiff-of-Steam/proto/proto1
* vim main.lua
* vim start.sh
* ./start.sh
* now a new tab should open bad you see the A-Whiff-of-Steam main.lua code
The result is a small and very basic graphical lua debugger based on a modified version of RemDebug.
https://github.com/hagish/lua-debugger
It is crossplatform but I only did the build scripts for linux.
---
Some steps to try it out:
* (ubuntu 11.04) apt-get install liblua5.1-filesystem-dev liblua5.1-socket-dev git cmake g++ libpoco-dev libboost-all-dev libwxbase2.8-dev libwxgtk2.8-dev
* git clone git://github.com/hagish/lua-debugger.git
* git clone git://github.com/lovelyrpgcommunity/A-Whiff-of-Steam.git
* cd lua-debugger/build
* cmake .
* cd ..
* ./lua-debugger
* (another terminal) cd A-Whiff-of-Steam/proto/proto1
* vim main.lua
Code: Select all
function love.load (args) -- search for this line
require"remdebug.engine" -- add these two lines
remdebug.engine.start() -- add these two lines
Code: Select all
# remdebug, lfs, luasocket
LUA_PATH="/usr/share/lua/5.1/?.lua;PATH_TO_LUA_DEBUGGER_CHECKOUT/remdebug/src/?.lua;$LUA_PATH"
export LUA_PATH
# lfs, luasocket
LUA_CPATH="/usr/lib/lua/5.1/?.so;$LUA_CPATH"
export LUA_CPATH
love .
* now a new tab should open bad you see the A-Whiff-of-Steam main.lua code