|Koneki LDT stops after stepping twice [message #1149140]
||Tue, 22 October 2013 00:18
| A J
Registered: October 2013
I am trying to run Koneki LDT with Eclipse to attach debug a lua project. I start the LDT debug server in Eclipse and run the project itself on cmd prompt.
Some information about my setup:
1. I have Socket and Mime libraries in "C:\Program Files (x86)\Lua\5.1\clibs" and mime.lua,socket.lua,url.lua in "C:\Program Files (x86)\Lua\5.1\lua". I have set these paths in LUA_PATH and LUA_CPATH environmental variables.
2. Also, I have:
package.cpath=package.cpath .. "C:/Program Files (x86)/Lua/5.1/clibs/?.dll;"
package.path = package.path .. ";C:/Program Files (x86)/Lua/5.1/lua/?.lua"
3. require(socket.core) and require(mime.core) in the lua files do nto work for me so I included
socketcore = package.loadlib("C://Program Files (x86)//Lua//5.1//clibs//socket//core.dll","luaopen_socket_core")()
mime = package.loadlib("C://Program Files (x86)//Lua//5.1//clibs//mime//core.dll","luaopen_mime_core")()
in my lua script at the beginning, so that these libraries are loaded before I start using them.
4. I am using Version: Juno Service Release 2
5. I have the require debugger line in my lua file and have verified the configurations to match between server and the lua file.
Given the above information, I notice that when I start my project, it goes through and hits the first line after the require debugger line in my script as expected. I am able to step (into/over) 2 times. The second time I do either, debug server stops. I do not see any logs to indicate what is going on either in eclipse or cmd prompt where I am running my project (client side).
As a note, if I copy over the libraries and files into my project, everything works fine. This makes me think that it might be the visibility to the libraries or files but not sure what I can do other than setting env variables and package.path/cpath. Any inputs are welcome.
Powered by FUDForum
. Page generated in 0.02087 seconds