6
votes

My project has LuaJava as the script interpreter, for usage in both desktop and android via AndroLua. I want to be able to debug it, but I'm unable to arrange it.

I have tried with an Eclipse plugin, Koneki, which is poorly documented and only seems able to debug Lua-only projects. I tried doing as the tutorial but it doesn't accept my project as valid for not having lua capabilities. I tried then using a secondary project linking my Lua files, launching the debugger and then my project, but the process does not attach. I tried using the methods provided by the tutorial but they throw an "non-existing Lua method" error.

I have also tried Decoda, but despite being able of launching the executable no symbol pdb files exist so the breakpoints are not triggered.

2

2 Answers

1
votes

After contacting ZeroBraneStudio's creator, it is now posible to debug AndroLua and LuaJava on his IDE.

Instructions here. This functionality is available from v0.38 onwards.

0
votes

I use koneki and it works a treat for lua embedded in c/c++/objective c - it should work for luajava but haven't tried it. Whats the message you get in Koneki, there are a few things you need to setup. In particular lua socket in your path, and the debugger.lua in your LUA_PATH.

These lines in your first lua file loaded

require "socket"
local initconnection = require("debugger")
initconnection("127.0.0.1", 10000, "luaidekey") 

if you still have probs leave a comment