Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lua Development Tools » how to create a debug-able lua interpreter for LDT
how to create a debug-able lua interpreter for LDT [message #1027595] Wed, 27 March 2013 06:48 Go to next message
terran tian is currently offline terran tianFriend
Messages: 4
Registered: March 2013
Junior Member
we develop games using cocos2d-x and lua, LDT is a wonderful tool, one big question is how to create a interpreter to debug lua code in LDT, The document just says that "if you intent to debug with you own interpreter, you have to ensure two things:
1.Your interpreter has -e option.
2.You have luasocket installed and available from your interpreter".

but how to do it?

cocos2d-x is a wonderful cross-platform library, write in C++ ,it's perfect if LDT can work with cocos2d-x.
Re: how to create a debug-able lua interpreter for LDT [message #1036354 is a reply to message #1027595] Mon, 08 April 2013 09:14 Go to previous messageGo to next message
Marc Aubry is currently offline Marc AubryFriend
Messages: 86
Registered: August 2012

It seems that you have to use the networking extension of cocos2d-x. (

To use it you must implement your own transportation layer in addition of the "Attach Debug Launch Configuration" as explain in the documentation here:

If you succeed to perform debug, it will be really appreciated if you can contribute to the debugger compatibility wiki page, to explain how user can make it work.

Otherwise, if you need deeper informations, feel free to ask.

Re: how to create a debug-able lua interpreter for LDT [message #1036406 is a reply to message #1036354] Mon, 08 April 2013 10:39 Go to previous message
Simon Bernard is currently offline Simon BernardFriend
Messages: 341
Registered: July 2009
Senior Member

Implement your own transport layer could be a bit complex, integrate Luasocket could be easier.

I don't test it but I see on cocos2d forum that could works.

We want to make LDT compatible with a lot of Lua Platform.
That's why we try to limit the compatibility requirements, but we need a tcp/ip connection and luasocket is the most popular lua library to do that.
Perhaps you could ask to cocos2d developers to integrate luasocket, this will help the LDT integration and even the others debugging tools for Lua.

In all cases, tell us if you succeed Wink

Previous Topic:LDT 0.9 Support for Eclipse Helios 3.6.2 (64-bit)
Next Topic:Working without the .lua file extention[LDT]
Goto Forum:

Current Time: Tue Sep 27 07:55:03 GMT 2022

Powered by FUDForum. Page generated in 0.02761 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top