I am using the live-coding-simple Gideros project in ZeroBrane Studio. It works perfectly with the local Gideros player.
However I am unable to either debug or Run as Scratchpad on a real (Android) device. The project uploads to the Gideros player on the device, but the debugger doesn't connect.
I'd be grateful for any advice re troubleshooting this.
Thanks in advance.
Gideros Studio 2017.6.3
ZeroBrane Studio (1.60; MobDebug 0.648)
Windows 10
Comments
then if you want to debug run on device, then click on 'set remote debugging 29' and run your project, it should work.
you should put into your project (without execution) the mobdebug file found in one of the zbs directories.
let me know if you succeed, then we can proceed with live coding too if that remains to be a problem.
Fragmenter - animated loop machine and IKONOMIKON - the memory game
That has been successful, but live coding is still only working with the local player. When targeting the device and clicking on the Run as Scratchpad icon, normal debugging starts.
Thanks again for your help, a final push to get live coding working on device would be great!
http://www.indiedb.com/tutorials/gideros-with-zerobrane
for live coding try the following (which works for me):
given a project set up such that debugging works, make sure that there is some function added to eventlistener, otherwise scratchpad won't work.
e.g. you can add the following:
if you want to liveupdate someFunction of someClass, then rename the someFunction function to someFunctionLive and add the following code:
of course you can see the results of the changes you make in your function only when it is called.
remark: pcall(self.someFunctionLive, self) seems not to work for some reason (at least the last time i tried a long time ago).
Likes: snooks
Fragmenter - animated loop machine and IKONOMIKON - the memory game
@paulclinger, the author of zbs can perhaps help us out.
Likes: snooks
Fragmenter - animated loop machine and IKONOMIKON - the memory game
It's good that you can replicate it not working on a device too.
I've came across another issue, which is something to do with how '-'s are being parsed. I get these kind of errors involving minus symbols...
Likes: antix