Debug Lua in a Java project using LuaJava

My project uses LuaJava as a script interpreter for use on both desktop and Android applications via AndroLua. I want to be able to debug it, but I cannot organize it.

I tried with the Eclipse plugin, Koneki, which is poorly documented and only seems able to debug projects only Lua. I tried to make it as a tutorial , but it does not recognize my project as valid in order to not have lua capabilities. I tried using a secondary project linking my Lua files, launching a debugger, and then my project, but the process is not attached. I tried using the methods provided by the tutorial, but they throw away the β€œnon-existent Lua method”.

I also tried Decoda, but despite the ability to run an executable file, no pdb character files exist, so breakpoints do not start.

+6
source share
2 answers

After contacting the creator of ZeroBraneStudio, you can now debug AndroLua and LuaJava on its IDE.

Instructions are here . This feature is available starting with version 3.0.

+1
source

I use koneki and it works for lua built into c / C ++ / object c - it should work for luajava, but have not tried. With the message you get in Koneki, there are a few things you need to configure. Specifically, the lua socket in your path and debugger.lua in your LUA_PATH.

These lines in your first lua file uploaded

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

if you still have problems with the comment

0
source

Source: https://habr.com/ru/post/945220/


All Articles