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.
我的项目有LuaJava作为脚本解释器,通过AndroLua在桌面和android中使用。我希望能够调试它,但是我无法安排它。
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.
我尝试过一个Eclipse插件Koneki,它的文档很少,而且似乎只能调试仅支持lua的项目。我尝试作为教程来做,但是它不接受我的项目因为没有lua功能而有效。我尝试使用连接我的Lua文件的辅助项目,启动调试器,然后启动我的项目,但是这个过程没有附加。我尝试使用本教程提供的方法,但它们会抛出一个“不存在的Lua方法”错误。
I have also tried Decoda, but despite being able of launching the executable no symbol pdb files exist so the breakpoints are not triggered.
我也尝试过Decoda,但是尽管能够启动可执行文件,但是没有pdb符号文件,所以断点不会被触发。
2 个解决方案
#1
1
After contacting ZeroBraneStudio's creator, it is now posible to debug AndroLua and LuaJava on his IDE.
在与ZeroBraneStudio的创建者联系之后,现在可以在他的IDE上调试AndroLua和LuaJava了。
Instructions here. This functionality is available from v0.38 onwards.
指令。这个功能可以从v0.38开始使用。
#2
0
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.
我使用的是koneki,它在c/c++/objective c中为lua工作,它应该为luajava工作,但没有尝试过。你在Koneki得到的信息是什么,有一些东西你需要设置。特别是路径中的lua套接字,以及调试器。在你的LUA_PATH lua。
These lines in your first lua file loaded
在第一个lua文件中加载这些行
require "socket"
local initconnection = require("debugger")
initconnection("127.0.0.1", 10000, "luaidekey")
if you still have probs leave a comment
如果你仍然有probs,请留下评论。
#1
1
After contacting ZeroBraneStudio's creator, it is now posible to debug AndroLua and LuaJava on his IDE.
在与ZeroBraneStudio的创建者联系之后,现在可以在他的IDE上调试AndroLua和LuaJava了。
Instructions here. This functionality is available from v0.38 onwards.
指令。这个功能可以从v0.38开始使用。
#2
0
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.
我使用的是koneki,它在c/c++/objective c中为lua工作,它应该为luajava工作,但没有尝试过。你在Koneki得到的信息是什么,有一些东西你需要设置。特别是路径中的lua套接字,以及调试器。在你的LUA_PATH lua。
These lines in your first lua file loaded
在第一个lua文件中加载这些行
require "socket"
local initconnection = require("debugger")
initconnection("127.0.0.1", 10000, "luaidekey")
if you still have probs leave a comment
如果你仍然有probs,请留下评论。