Debugging for Corona SDK [message #1416355] |
Wed, 07 March 2012 09:06  |
Eclipse User |
|
|
|
I have been recently looking into doing cross platform game development for mobile platforms using the Lua based Corona SDK. The Koneki plugin for Eclipse looks absolutely fantastic and I would love to be able to use it to develop and debug Corona SDK games.
I am fairly new to both Corona as well as Lua (been developing in other languages and platforms for years) so I am slowly putting all the pieces together. One thing I have not been able to find is a great (visual) debugging tool that can work with the Corona SDK simulator. They have a command line debugger, which to the best of my knowledge is based on RemDebug but is a closed source custom version of it, and that will work but can really slow down the development progress having to rely on a command line debugger.
I do not know all of the specifics of Lua debugging using remote debugging but has anyone gotten the remote debugging capabilities of Koneki to work the Corona simulator? Should the steps mentioned in the Remote Debugging section (3.1) of the user guide work for games running within the Corona simulator?
If anyone has gotten it to work, what were the steps required to get it setup?
Hopefully that all made sense...
Thanks!
|
|
|
|
|
|
Re: Debugging for Corona SDK [message #1416359 is a reply to message #1416358] |
Mon, 12 March 2012 10:37   |
Eclipse User |
|
|
|
Hi Jarrod,
Thanks so much for the kind words!
Actually I tried to play with Corona a while ago, and I was stuck with the loadstring() problem too. I didn't try to use the debugger VM, but indeed it seems to be working great. In case you don't know, not only it allows you to browse tables contents, but it also permits to define conditional breakpoints (i.e. halt only when a given expression evaluates to true)! Just right-click on a given breakpoint and select the menu entry "Breakpoint Properties..." in order to change the breakpoint behaviour.
That would be awesome if you could write a quick tutorial, since I think it will be very helpful to the Corona community! Please keep us posted here when you'll have done it, I'll be happy to relay it on Koneki website too!
On a side note, you should check out the beta version of LDT mentioned http://lua-list.2524044.n2.nabble.com/ANN-Koneki-LDT-smart-content-assist-available-in-beta-td7287990.html to get better support (i.e. content assist) for Corona SDK!
Cheers,
Ben.
|
|
|
|
|
|
|
|
|
|
|
Re: Debugging for Corona SDK [message #1416465 is a reply to message #1416413] |
Fri, 25 May 2012 17:37  |
Eclipse User |
|
|
|
Hi Girish
You mentioned "on connecting to debugger and opening debug perspective, it opens a blank tab for main.lua".
You may have figured out that the Koneki plugin has a bug when running on Windows - it can't recognise a filename which has a space in it.
I hope Benjamin will fix this bug because Koneki is amazing and we all want it to 'just work' as a certain Jobs used to say, right out the box.
Here is an error message that might help Benjamin locate the bug, when Eclipse tried to reload a file that had a space in a directory name:
**
Could not open the editor: Factory
org.eclipse.dltk.ui.ExternalSourceModuleEditorInputFactory returned null from
createElement for editor id=org.eclipse.koneki.ldt.editor name=DBGP:
/c:/users/amu/documents/corona/gears animation/ansca-gear-animation-082bd66/6.
multires/main.lua
**
|
|
|
Powered by
FUDForum. Page generated in 0.12975 seconds