The DBGp client script which can be used with Eclipse's Lua debugger works fine with Lua 5.3

33 views
Skip to first unread message

J-Shep

unread,
May 22, 2015, 8:07:54 AM5/22/15
to corsix...@googlegroups.com
Hi,

The important features I've tested with CorsixTH all work with Lua 5.3 except for breakpoint use conditions, the hit count condition does work.

To make this script work with Lua 5.3 you simply have to find all of its Lua 5.2 compatibility if statements and add:
or _VERSION == "Lua 5.3

You should also remove the following code at line 167 because Luasocket 3 officially supports Lua 5.2:
--FIXME: remove this hack as soon as luasocket officially support 5.2
if _VERSION == "Lua 5.2" then
  table.getn = function(t) return t and #t end
end


Joe#

unread,
Jul 19, 2015, 11:48:37 AM7/19/15
to corsix...@googlegroups.com
The debugger.lua version which is downloaded with the link in Eclipse Mars's debug configuration window doesn't work because this script's sessionId variable has been moved to a function which doesn't declare it. 

The version downloaded with the link in Eclipse Luna works and I've uploaded it to my Google drive where I will keep it until the Mars version has been fixed.

Joe#

unread,
Jul 19, 2015, 12:27:46 PM7/19/15
to corsix...@googlegroups.com
I accidentally uploaded the Mars version to my Google Drive, here's the Luna version.
Reply all
Reply to author
Forward
0 new messages