[SOLVED] Debugger attaches, but nothing else happens [message #1055890] |
Wed, 08 May 2013 07:05  |
Eclipse User |
|
|
|
Hi,
I've built Lua 5.1.5 as a dll. I execute scripts that can be passed into the my program or are embedded as part of its test infrastructure.
I'm trying to use LDT (0.9.0.201212171109)to debug scripts, but am not having much luck. The scripts are run using lua_pcall, and given a name (e.g. UserScript1.lua) but not saved to disk.
I start the debugger by selecting a 'Lua Attach to Application' configuration. I have 'break on first line' and 'Enable DBGP logging' selected. I also have a file in my project called UserScript1.lua which corresponds in content to the embedded test script being run.
The console shows [Debug Console]NewConfiguration(1) until my program has run, then shows <terminated>[Debug Console] etc.
The script debug log shows:
Event MODEL_SPECIFIC/5 from org.eclipse.dltk.dbgp.internal.DbgpDebugingEngine
<< <?xml version="1.0" encoding="UTF-8" ?>
<init fileuri="unknown:/" idekey="luaidekey" protocol_version="1.0" parent="" thread="main" appid="Lua DBGp" language="Lua" session="1368010931_main" xmlns="urn:debugger_protocol_v1"/>
>> feature_set -n max_children -i 142 -v 32
<< <?xml version="1.0" encoding="UTF-8" ?>
<response feature="max_children" success="1" command="feature_set" transaction_id="142" xmlns="urn:debugger_protocol_v1"/>
>> feature_set -n max_depth -i 143 -v 2
<< <?xml version="1.0" encoding="UTF-8" ?>
<response feature="max_depth" success="1" command="feature_set" transaction_id="143" xmlns="urn:debugger_protocol_v1"/>
>> feature_set -n max_data -i 144 -v 8192
<< <?xml version="1.0" encoding="UTF-8" ?>
<response feature="max_data" success="1" command="feature_set" transaction_id="144" xmlns="urn:debugger_protocol_v1"/>
>> feature_get -n stdin -i 145
<< <?xml version="1.0" encoding="UTF-8" ?>
<response transaction_id="145" feature_name="stdin" command="feature_get" supported="0" xmlns="urn:debugger_protocol_v1"><![CDATA[false]]></response>
>> feature_set -n notify_ok -i 146 -v 1
<< <?xml version="1.0" encoding="UTF-8" ?>
<response feature="notify_ok" success="0" command="feature_set" transaction_id="146" xmlns="urn:debugger_protocol_v1"/>
>> stdout -c 2 -i 147
<< <?xml version="1.0" encoding="UTF-8" ?>
<response command="stdout" transaction_id="147" success="1" xmlns="urn:debugger_protocol_v1"/>
>> stderr -c 2 -i 148
<< <?xml version="1.0" encoding="UTF-8" ?>
<response command="stderr" transaction_id="148" success="1" xmlns="urn:debugger_protocol_v1"/>
>> breakpoint_set -r 0 -t line -s enabled -n 2 -i 149 -f [url]file:///C:/Program%20Files/LuaDevelopmentTools64/workspace/test/src/UserScript1.lua[/url]
<< <?xml version="1.0" encoding="UTF-8" ?>
<response transaction_id="149" id="0" state="enabled" command="breakpoint_set" xmlns="urn:debugger_protocol_v1"/>
>> breakpoint_set -r 0 -t line -s enabled -n 5 -i 150 -f [url]file:///C:/Program%20Files/LuaDevelopmentTools64/workspace/test/src/UserScript1.lua[/url]
<< <?xml version="1.0" encoding="UTF-8" ?>
<response transaction_id="150" id="1" state="enabled" command="breakpoint_set" xmlns="urn:debugger_protocol_v1"/>
Event CREATE from org.eclipse.dltk.internal.debug.core.model.ScriptThread
>> step_into -i 151
Event MODEL_SPECIFIC/4 from org.eclipse.dltk.internal.debug.core.model.ScriptThread
Event RESUME from org.eclipse.dltk.internal.debug.core.model.ScriptThread
Event CHANGE from org.eclipse.dltk.internal.debug.core.model.ScriptThread
Event MODEL_SPECIFIC/2 from org.eclipse.koneki.ldt.debug.core.internal.attach.LuaAttachDebuggingEngineRunner$1
Event TERMINATE from org.eclipse.dltk.internal.debug.core.model.ScriptThread
I'd appreciate any help diagnosing this problem. Even if I had the source mapping incorrect, I would have expected to see the script I run being downloaded to the debugger, but nothing happens.
TIA,
Neil
[Updated on: Wed, 12 June 2013 00:47] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04972 seconds