Corona CIDER Advanced Debugger with IDE - v 1.5.1- Update

@flyingaudio,
Thanks for the feedback.
ability in the Project window to duplicate and paste a file
Indeed it has this feature. Just copy the file and click on the main project node, then paste. If you try to paste while the file is clicked it will try to paste within the file itself instead of the folder.

I did see it hold the change once, I think when I was in pause.
You are correct. You can only change values when the program is paused. You may be able to change globals while the program is running but the current locals in view may or may not be in scope depending on where you are in execution. Therefore, in order to change the value of locals, you must be paused.

@Pinback
Glad you like it! Thanks for giving it a shot.

@T.alberga,
You should be able to just drag and drop files into the project view via finder if you do not like the built in browser. Sorry about that.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 96335[/import]

Hello,
Did not know you could drag and drop. Tried that several builds ago and it didn’t work then. Great to see it does now. [import]uid: 100901 topic_id: 23072 reply_id: 96337[/import]

@T.Alberga,

Drag and drop works when you drag the project folder into the editor view (not the project view.) It will detect the project and open it automatically. Also you can right click on a file in the project view ->tools->show in finder for quick access.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 96343[/import]

@flyingaudio,

Confirmed you can change globals during runtime. The variable view will not be updated until you pause though. Try this

print("this is the first line")  
circle = display.newCircle(100,100,20)  
local function enterFrame()  
  
end  
Runtime:addEventListener("enterFrame", enterFrame);  

Pause once to get the variables. Run it and mess around with the various fields under the circle global display object. You will see the changes instantly.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 96346[/import]

What is the correct way to update Cider? I keep having so many different issues with each update, so maybe i’m doing things wrong. The way I’m doing it is go to Tools -> Plugins -> Reload Catalog and then installing whatever shows up.

My application title says Cider 1.0.

Is that the right way? Or should I be downloading binaries as well from a website somewhere? [import]uid: 122310 topic_id: 23072 reply_id: 96354[/import]

Also, in the current release, every time you print something to the console, you get two lines showing, not one. [import]uid: 122310 topic_id: 23072 reply_id: 96355[/import]

@aisaken

To update, go to Help -> Check For Updates …at least on the mac
[import]uid: 135765 topic_id: 23072 reply_id: 96360[/import]

has anyone tried this with lime? I keep getting the following error, even on the lime examples, but only when run with the CIDER debugger …

Runtime error
…me samples\basicparallax\lime-external-numberlua.lua:31: attempt to perform arithmetic on local ‘a’ (a string value)
stack traceback:
[C]: ?
…me samples\basicparallax\lime-external-numberlua.lua:31: in function <…me samples …me error:="">ua:31: attempt to perform arithmetic on local ‘a’ (a string value)
stack traceback:
[C]: ?
…me samples\basicparallax\lime-external-numberlua.lua:31: in function <…me samples>Copyright © 2009-2011 A n s c a , I n c .
0.0

Cheeers,
e.
[import]uid: 81475 topic_id: 23072 reply_id: 96363[/import] </…me></…me>

Is it known that if you use the code completion after you entered the first letter of a word it completes the code after the word but also adds an extra “:”? [import]uid: 100901 topic_id: 23072 reply_id: 96371[/import]

@elliotagro83,
We do not use Lime and currently have no means to test it with that library. It is strange that the error arises from a local variable from within lime. We will have to get in touch with the Lime developer to track down this problem

@T.alberga
Patch to fix the issue is live. Sorry about that.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 96378[/import]

After the rush of updates has ended adding viewable coordinates to the main window when viewing images would be cool.
That way you can find the location of where to place your buttons easier. Less experimenting.
You already have scale options, this would be a logical follow up.

Liking your software so far. Bugs and crashes get fixed really quick! cudos. [import]uid: 100901 topic_id: 23072 reply_id: 96380[/import]

@aisaksen

You are updating things correctly. You can do it that way or go to help menu like r.delia said. Just be sure to watch out for new modules as well under the “available modules” tab. Currently there is a known issue where the simulator just restarts when it first starts up with the debugger enabled. The issue does not persist if you restart the simulator yourself (ie cntrl-r) but if you close it down completely it will recur. We will talk to Ansca about this issue.

Thanks,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 96381[/import]

@M.Y.
… but the current locals in view may or may not be in scope depending on where you are in execution. Therefore, in order to change the value of locals, you must be paused.
Confirmed you can change globals during runtime.

You program is even cooling then that. With the following code, the local circle variables can be updated while the program is running.

print("this is the first line")  
local circle = display.newCircle(100, 100,20)   
local function enterFrame()  
  
end  
Runtime:addEventListener("enterFrame", enterFrame);  

After break and stepping, open the Variables tab, expand circle, a local var. Press play. Change the x/y and watch the screen update.

Like you said, the enter doesn’t change until you pause, which I didn’t understand before.

I am not sure way the debugger doesn’t show circle when just pausing, does it have something to do with the stack? I tried just pausing, no break, and sometimes a table called circle would show up, but changes would have no effect.

If I include something in the function, like circle.y = circle.y, then the local table is exposed with just a pause.

This is a super useful feature. Should I not use it with local var while running, because of scope issues?

EDIT: I just did another test on code that I am working on, the stuff I was working with yesterday, and I am able to change the local variables while it is running and it works. Sometimes when I hit pause the variable doesn’t update, but with pressing play and then pause again it usually does. [import]uid: 47723 topic_id: 23072 reply_id: 96397[/import]

@flyingaudio,

I am not sure way the debugger doesn’t show circle when just pausing

print("this is the first line")  
local circle = display.newCircle(100, 100,20)   
local function enterFrame()  
 --circle is not an upvalue here b/c it is not being used  
 circle.dummyValue = 1; --forces circle to be upvalue  
end  
Runtime:addEventListener("enterFrame", enterFrame);  

the circle local variable is not inside of the function so it will be an upvalue. However, lua is smart enough not to include upvalues that you never use so you must use the circle variable somehow so that it appears in the locals stack.

For demonstration purpose of the feature you can just leave it a global and you can then update the variable without pausing.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 96402[/import]

@All,

If anyone is having a licensing issue please email us ASAP.
mydevelopergames@gmail.com

Thanks,
M.Y. Developers
[import]uid: 55057 topic_id: 23072 reply_id: 96408[/import]

@M.Y.
For demonstration purpose of the feature you can just leave it a global and you can then update the variable without pausing.

With your code above, which has a local variable called circle, you can update variables without pausing, except for once to display them.

It is awesome. [import]uid: 47723 topic_id: 23072 reply_id: 96410[/import]

@flyingaudio

Thank you :slight_smile: We are glad you like it.

-M.Y. Developers [import]uid: 55057 topic_id: 23072 reply_id: 96413[/import]

Will there be a way to “option” select text like in sublime. Where you can selects text non contiguously. for instance every other line. Basically the copy,pasete selection options from sublime? [import]uid: 100901 topic_id: 23072 reply_id: 96544[/import]

This seems like an amazing step for developing with Corona! I come from a background using C++ with Visual Studio so I’ve been missing something like this when working with Corona.

Just one question though, what about that discount you mentioned for owners of Profiler? [import]uid: 129450 topic_id: 23072 reply_id: 96557[/import]

The link

www.mydevelopersgames.com/cider-windows.exe

does not work. [import]uid: 23256 topic_id: 23072 reply_id: 96605[/import]