| Debugging for Corona SDK [message #815322] |
Wed, 07 March 2012 09:06  |
Jarrod Bellmore Messages: 3 Registered: March 2012 |
Junior Member |
|
|
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 #819132 is a reply to message #815705] |
Mon, 12 March 2012 10:37   |
|
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 debug tutorial, and 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 here to get better support (i.e. content assist) for Corona SDK!
Cheers,
Ben.
[Updated on: Mon, 12 March 2012 10:38] Report message to a moderator
|
|
|
|
|
|
|
| Re: Debugging for Corona SDK [message #867656 is a reply to message #853714] |
Tue, 01 May 2012 08:06   |
Girish Joshi Messages: 1 Registered: May 2012 |
Junior Member |
|
|
Hi Benjamin ,
Thanks for this very helpful info. I tried it on win32. It works very well. Only problems is that on connecting to debugger and opening debug perspective, it opens a blank tab for main.lua. The editor window shows 'debug source lookup '. The tab title shows correct path to project main.lua but all in small case. I think path has to be case sensitive. Please let me know how to fix this.
[Updated on: Tue, 01 May 2012 08:06] Report message to a moderator
|
|
|
|
| Re: Debugging for Corona SDK [message #868595 is a reply to message #868001] |
Wed, 02 May 2012 05:15   |
|
sean bean wrote on Tue, 01 May 2012 17:40Hi everyone.
I just have a quick question, I can get the debugger up and running thanks to Benjamins tutorial. However, if I then make changes to my code and save my .lua files, the debugger disconnects, and I have to close corona simulator and debugger, then relaunch from the beginning in eclipse. I was just wondering if there was a quicker way.
Hello Sean,
Unfortunately there is a "facility" in the Corona simulator and debugger that makes it automatically restart whenever a file is modified so as you can immediately see the result of the modification. Maybe you should ask to the Ansca ppl whether it is possible to disable this behavior by using a command line parameter?
In the meantime we could have a special parameter in the LDT debug config to never end a debugging session even though the application under debug has been restarted.
|
|
|
|
| Re: Debugging for Corona SDK [message #877098 is a reply to message #867656] |
Fri, 25 May 2012 17:37  |
Amu Shan Messages: 1 Registered: May 2012 |
Junior Member |
|
|
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 believe Benjamin will fix this bug because he has acknowledged in message #872655 in forum topic "Spaces in path causing debug problems?"
[Updated on: Fri, 25 May 2012 17:49] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.15604 seconds