Debugging not working [message #775935] |
Fri, 06 January 2012 19:40  |
Eclipse User |
|
|
|
Hi,
I tried setting up the debug configuration as mentioned in the user guide but when I click debug I get the following message:
Process "LDT_Debug" takes too long to connect to IDE...
I had downloaded and placed the debugger.lua and the other file in the project src directly itself.
Please let me know what am I missing here.
Thanks,
Milind
|
|
|
|
|
|
|
|
|
|
|
Re: Debugging not working [message #871436 is a reply to message #871422] |
Sun, 13 May 2012 13:11   |
Eclipse User |
|
|
|
Bejamin,
Thanks for the quick response! Good to see this project is active!
Sure, I can share Eclipse instance info. This problem is very reproducible:
1) Start-up my Eclipse instance. I do Android development using this. Here's what the Help > About says:
Eclipse SDK
Version: 3.6.2
Build id: M20110210-1200
2) Start-up the standalone LDT tool.
3) Open up workspace & Lua project. Lua project contains main.lua, debugger.lua, and debugintrospection.lua.
require("debugger")()
local function main()
print("Hello world")
end
main()
4) Start the debugger in LDT.
5) Use the external tool configuration for lua_run with main.lua selected from the project. (See Thisj's blog post for the config I'm using... I'd post a link, but my post count is < 25 and I'm currently disallowed from doing that... stupid spammers.)
6) A pop-up dialog appears *under* the Eclipse instance on my Win7 box. That's partly why I missed it earlier when I was trying to get things going -- I didn't even see the dialog appear. The dialog title is "Debugger Error" and the contents are "Incompatible debugger version. The remote debugger version might not match the expected protocol version (2006040705)."
7) As mentioned in my previous post, I see the following error in the console of the LDT:
D:\lua\5.1\lua.exe: .\debugger.lua:1455: closed
stack traceback:
[C]: in function 'assert'
.\debugger.lua:1455: in function 'debugger_loop'
.\debugger.lua:1574: in function <.\debugger.lua:1527>
main.lua:1: in main chunk
[C]: ?
Further-- I figured I'd try to load the Eclipse plugin for LDT in my Eclipse installation. That fails a dependency check relating to PHP, so no go there. This is too bad -- I want to execute Lua scripts from my Android app (at least... that's the plan -- I'm still learning Lua). If I have to run the tools separately, that's going to be a pain.
Here's what's reported with the dependency check issue if I try to install LDT directly in my Eclipse instance:
Cannot complete the install because of a conflicting dependency.
Software being installed: Lua Development Tools (Incubator) 0.8.0.201204241228 (org.eclipse.koneki.ldt.feature.group 0.8.0.201204241228)
Software currently installed: PHP Development Tools (PDT) SDK Feature 2.2.1.v20101001-2300-53184QAN4JBQgLYPWMLcXn6Na9Od (org.eclipse.php.sdk.feature.group 2.2.1.v20101001-2300-53184QAN4JBQgLYPWMLcXn6Na9Od)
Only one of the following can be installed at once:
Dynamic Languages Toolkit Core 2.0.0.v20100603-0936 (org.eclipse.dltk.core 2.0.0.v20100603-0936)
Dynamic Languages Toolkit Core 3.0.1.v20110823 (org.eclipse.dltk.core 3.0.1.v20110823)
Dynamic Languages Toolkit Core 2.0.1.v20100806-1245 (org.eclipse.dltk.core 2.0.1.v20100806-1245)
Cannot satisfy dependency:
From: Dynamic Languages Toolkit - Core Frameworks 2.0.0.v20100518-1923-7L--EAAoOVMSMc4AWEvJ (org.eclipse.dltk.core.feature.group 2.0.0.v20100518-1923-7L--EAAoOVMSMc4AWEvJ)
To: org.eclipse.dltk.core [2.0.0.v20100603-0936]
Cannot satisfy dependency:
From: Dynamic Languages Toolkit - Core Frameworks 2.0.0.v20100518-1923-7L-0EAAoOVMSUaEAZ8w_ (org.eclipse.dltk.core.feature.group 2.0.0.v20100518-1923-7L-0EAAoOVMSUaEAZ8w_)
To: org.eclipse.dltk.core [2.0.1.v20100806-1245]
Cannot satisfy dependency:
From: Lua Development Tools (Incubator) 0.8.0.201204241228 (org.eclipse.koneki.ldt.feature.group 0.8.0.201204241228)
To: org.eclipse.dltk.core 3.0.0
Cannot satisfy dependency:
From: PHP Development Tools (PDT) Runtime Feature 2.2.1.v20101001-2300-7L7J1F8NcJTJTJJT9cmJJ (org.eclipse.php.feature.group 2.2.1.v20101001-2300-7L7J1F8NcJTJTJJT9cmJJ)
To: org.eclipse.dltk.core.feature.group [2.0.0,3.0.0)
Cannot satisfy dependency:
From: PHP Development Tools (PDT) SDK Feature 2.2.1.v20101001-2300-53184QAN4JBQgLYPWMLcXn6Na9Od (org.eclipse.php.sdk.feature.group 2.2.1.v20101001-2300-53184QAN4JBQgLYPWMLcXn6Na9Od)
To: org.eclipse.php.feature.group [2.2.1.v20101001-2300-7L7J1F8NcJTJTJJT9cmJJ]
I don't do any PHP development, so I'm not sure what is up with that. I'd move to the latest version of Eclipse, but everything is *working* for me now, and I'm paranoid of breaking my Android builds. 
Thanks again,
--tim
|
|
|
|
Powered by
FUDForum. Page generated in 1.07182 seconds