Home » Archived » Lua Development Tools » How to set remote system for remote debug(ldt;remote;)
| | | |
Re: How to set remote system for remote debug [message #1228097 is a reply to message #1228012] |
Mon, 06 January 2014 12:03 |
li meng Messages: 14 Registered: January 2014 |
Junior Member |
|
|
HI,
I hope who can explain the meaning of these items:
LD_LIBRARY_PATH
Lua Command lua
Lua CPath
Lua Path
Output Directory /tmp
Also, I installed installed lua5.1.4 and luarocks, I want to debug a file, such as Hello.lua (not main, such as only a fuction), I am in the LDT remote mode, do not add require ("debugger") () in front, on the other side (routers) do not have to install luarocks, and require ("debugger") () can be debugged, is that right?
|
|
| | | |
Re: How to set remote system for remote debug [message #1228750 is a reply to message #1228563] |
Wed, 08 January 2014 00:34 |
li meng Messages: 14 Registered: January 2014 |
Junior Member |
|
|
Thank you, I find the path, and then later set LDT, do not have this problem, but now have a new problem, it seems some people appeared. configure LDT environment, this is really a complex task
And I see my router a few more files, such as debugger.lua, in LDT_Debug dir, indicating the success of the communications
The problem is:
Process "LDT_Debug" takes too long to connect to IDE...
|
|
| |
Re: How to set remote system for remote debug [message #1228970 is a reply to message #1228897] |
Wed, 08 January 2014 12:54 |
li meng Messages: 14 Registered: January 2014 |
Junior Member |
|
|
HI,Simon Bernard
I think i set right path
I tried it your way,
LDT report:
/usr/bin/lua: controller/admin/system.lua:16: attempt to call a boolean value
stack traceback:
controller/admin/system.lua:16: in main chunk
[C]: ?
I don't what to do.
More info is below:
Router:
1, luasocket version:2.0.2, it's work
2, Lua Path /usr/lib/lua/luci/controller/admin/system.lua(i only set be debug file, because so much files and some name is same)
3, here is some file content of system.lua
...
$Id: system.lua 9570 2012-12-25 02:45:42Z jow $
]]--
module("luci.controller.admin.system", package.seeall)
line 16(In fact there is no content)
function index()
entry({"admin", "system"}, alias("admin", "system", "system"), _("System"), 30).index = true
...
PC:
1, luasocket version:3.0, it's work
2, .lua path /lucsrc/luci/controller/admin/system.lua
3, here is some file content of be debug system.lua
$Id: system.lua 9570 2012-12-25 02:45:42Z jow $
]]--
require('socket')
require('debugger')();--i add right environment variable.
module("luci.controller.admin.system", package.seeall)
line 18(In fact there is no content)
function index()
entry({"admin", "system"}, alias("admin", "system", "system"), _("System"), 30).index = true
...
|
|
| | |
Goto Forum:
Current Time: Sat Oct 19 17:10:48 GMT 2024
Powered by FUDForum. Page generated in 0.04677 seconds
|