Corona CIDER Advanced Debugger with IDE - v 1.5.1- Update

And just like that I have the same problem as before, confirmed that it is fixed by restarting Cider tough. [import]uid: 129450 topic_id: 23072 reply_id: 97921[/import]

@info583

You should be able to get the Find/Replace field by hitting CTRL+H.

Or from the menu EDIT > REPLACE

Or perhaps you meant that you already tried that without success?

[import]uid: 74068 topic_id: 23072 reply_id: 97927[/import]

Thanks gray. I didn’t know about the shortcut but thanks to you I realized that if you have the find window open you can’t open the replace window by using the menu. [import]uid: 129450 topic_id: 23072 reply_id: 97928[/import]

Hi,
is there a way to get a list of the variables used on a page?
Like the functions but then for variables?

Also a way to filter the file list would be nice. Just lua files or images etc.
Or when you do search in the file list, have only the files listed that match the search term.

[import]uid: 100901 topic_id: 23072 reply_id: 97939[/import]

@ T.alberga
Variable list will be uber cool but don’t think it’s easy to do that for Lua.

There is some kind of filtering. Check their demo video. [import]uid: 101952 topic_id: 23072 reply_id: 97942[/import]

Just bought a copy. It is a big step towards more professional development, as I came to expect in Adobe’s Flash Builder. Looking forward to this product progressing. [import]uid: 6114 topic_id: 23072 reply_id: 97977[/import]

@gray.uk,
The double print bug seems to occur when launching Corona from the command line. We will talk to Ansca about a fix. Thanks for pointing this out. Also, the reason string.gsub is highlighted is because it is a standard library in Lua.

@info583,
Please ensure you have a main project set. We will include a warning in the next release to prevent this common pitfall.

@T.alberga,
Yes we considered the variable list option. It may be a bit difficult in lua like srdjan said because you don’t really have to declare anything in lua as in java or C++ for instance. We can work on just getting local variables to show up. Thanks for all the feature requests!

@alangrus
Glad you like it! Let us know if you have any suggestions/problems.

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

@All,
We have been pretty busy the last few days working on version 1.4.1
Here are a list of features we plan to have out by today

  1. Navigator screen now works both ways, you can use it to go to places in your code and now it automatically highlights which function you are working in.

  2. Selection highlights , selecting something will automaticlaly find all instances in the current document


3) Call stack. See where the program came from, useful to see what called what and checking recursive functions. Double clicking will jump to function declaration like navigator. Also works in history mode (step back.)

  1. Step into/over/out now records history so you can step back if you missed something. No need to enable omniscient debugging which can be very slow.

  1. Color Selector. Will automatically detect if selection is greyscale, RGB, or RGBA. Selected color is also reflected in the color chooser. If nothing is selected then the chooser defaults to RGBA color.

  2. Fixed step-over/out bug. Now keeps track of # of calls and returns within the function to step over/out

upcoming:

Integrated documentation.
Option for unicode support.
Written Documentation.

Expect version 1.4.1 to be released soon.

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

WOW!!! [import]uid: 101952 topic_id: 23072 reply_id: 98060[/import]

I’m now having a problem where I break in a function but no local variables show in the debugger, only globals. [import]uid: 111413 topic_id: 23072 reply_id: 98070[/import]

@corona706,

Sorry about that, just discovered the problem was due to a miscount in the number of globals+locals. This is fixed in the update coming out soon.

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

Feature Requests:

Autocomplete for variables. With a CTRL+Space, I can get a list of functions but Variables would be helpful.

Line or Selection duplication. Many editors will duplicate a line of code with a CTRL+D, or whatever you have selected. This is very helpful with debugging.

Just bought Cider, love this tool so far. [import]uid: 13784 topic_id: 23072 reply_id: 98076[/import]

I got your email before I found this post. Thanks for the quick response! [import]uid: 111413 topic_id: 23072 reply_id: 98079[/import]

@M.Y.

Awesome work people.

This just gets better and better.

re code highlighting: are there plans (assuming it’s possible) to have the corona keywords highlighted?

[import]uid: 74068 topic_id: 23072 reply_id: 98088[/import]

@M.Y. bought Cider yesterday - great stuff! I just don’t understand now how someone can use Corona without it :slight_smile:

btw - you did mention you want to integrate profiler into Cider - any time soon? [import]uid: 42082 topic_id: 23072 reply_id: 98095[/import]

@marble68
Autocomplete for variable
We will implement this in an upcoming update.

Line or Selection duplication
It is a bit different in Cider. Just select something and do ctrl-shift- up (or down). this will duplicate the line or selection above or underneath. You can chain it together too. Ie pressing cntrl-up 4 times will duplicate it 4 times above the line.

@corona706,
No problem. Update is now live. Please confirm the problem is fixed.

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

@gray.uk,
sure! Now that all the apis are in the autocomplete, this should be easy to do.

@krystian9,
Thanks for trying out Cider! We want to finish the base IDE first and then we will work on getting the Profiler integrated. Most likely this will be its own module as this may take as much development time as the IDE itself.

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

@M.Y.

So, using the colour picker…

Select values including alpha, right-click and choose colour picker?

On the rgb tab there’s no alpha value - it defaults your colour choice to an alpha of 255?

(Windows version)
[import]uid: 74068 topic_id: 23072 reply_id: 98137[/import]

Just played with the newest update, 1.4.1. Instead of commenting on the highend stuff like the call stack, I have to say something about the beauty of CIDER’s hightlighting.

When clicking a var, the page lights up with them. Very useful. And if I click on a function, like in an event listener, and the function is off the screen, I can just look at the Navigator panel, and double click on the function name there, and presto, my edit window is highlighting the function. Navigation is sweet, as CIDER should be.

And the color picker, niiiiiice.

[import]uid: 47723 topic_id: 23072 reply_id: 98152[/import]

Tried 1.4.2 this morning on sample project to test stack traces and got:

update: this happens with Corona SDK #776; in Corona SDK #704 it works properly!

[code]
debugger started

breakpoint
Runtime error
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:185: attempt to call field ‘Null’ (a nil value)
stack traceback:
[C]: in function ‘Null’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:185: in function ‘serializeDump’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:182: in function ‘serializeDump’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:182: in function ‘serializeDump’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:337: in function ‘writeVariableDump’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:402: in function ‘p’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:667: in function <…nsprojects>
…an/NetBeansProjects/Ghost-vs-Monsters—OOP/main.lua:92: in function ‘initialize’
…an/NetBeansProjects/Ghost-vs-Monsters—OOP/main.lua:115: in function ‘main’
…an/NetBeansProjects/Ghost-vs-Monsters—OOP/main.lua:128: in main chunk
Runtime error: …nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:185: attempt to call field ‘Null’ (a nil value)
stack traceback:
[C]: in function ‘Null’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:185: in function ‘serializeDump’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:182: in function ‘serializeDump’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:182: in function ‘serializeDump’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:337: in function ‘writeVariableDump’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:402: in function ‘p’
…nsProjects/Ghost-vs-Monsters—OOP/CiderDebugger.lua:667: in function <…nsprojects>
…an/NetBeansProjects/Ghost-vs-Monsters—OOP/main.lua:92: in function ‘initialize’
…an/NetBeansProjects/Ghost-vs-Monsters—OOP/main.lua:115: in function ‘main’
…an/NetBeansProjects/Ghost-vs-Monsters—OOP/main.lua:128: in main chunk
[/code]

[import]uid: 42082 topic_id: 23072 reply_id: 98205[/import] </…nsprojects></…nsprojects>