1.9 - Debugger doesn't seem to run..

Hi guys, 

Just installed 1.9 and it looks great… except for one thing. I fire up the Simulator in the usual way  by hitting the debug icon, the sim fires up and my app runs but the breakpoints seem to be totally ignored so I can’t actually debug anything - my app runs totally as normal.

Any suggestions?

Regards

Chris

I can actually break at the breakpoints, but on the variables tab, there are no variables listed.

I’m having the same issue with 1.9.  I can run the debugger, set breakpoints and have execution stop at each breakpoint.  But no variables are shown.

Hello Everyone,

We need a bit more information to fix this:

  1. What platform are you running?

  2. Did you try the Corona sample projects? Does it break there?

  3. Do you get print statements when you debug/run?

Regards,

M.Y. Developers

My info,

  1.  I am using Windows 7

  2. Yes, I did try a Corona sample project (Fishies) and I could see variables when I hit a breakpoint.  

  3. Print statements do display.

I saw there were several updates, and after installing them, the same problem occurs… I cannot see anything in the variables tab when I hit a breakpoint in my projects.

Interesting… I fired up LuaGlider this morning and everything is working fine… not sure what changed overnight but everything’s fine now…

Thanks for the quick response MY!

(probably should also add that this is one of the best debuggers I’ve ever used - top work chaps!)

Not for me  :frowning:

Still can’t see variables

Mac OS X 10.8.3

Corona 2013.1106 (2013.5.11)

LuaGliderv19 20130213220019

I load up my project and debugger shows no variables.  I then concurrently open up the bridge demo and variables work on that project.  I debug again on my project and variables show up for a few steps and then no more.  I am able to repeat this process with other sample projects and mine. 

I’ve applied the updates from this morning and variables are showing up upon reaching the first breakpoint and step thrus.  However, upon stepping into a call that opens up a new file, the variable display stops updating entirely.

Hello Everyone,

We are on the hunt for a project that causes this problem but if you could send/attach a simple project that can help us replicate the issue that would help us out alot. We take your privacy very seriously and all code will be kept confidential. You can also send us the logs, it might have errors in there that we can fix. You can do this via help-> send logs.

Regards,

M.Y. Developers

Here is something weird…

I loaded a small test project I had and added a breakpoint.  At the breakpoint, I did see variables listed.

I then unloaded that project, and loaded another project.  This second project is one that I never could get to see variables.  I added a breakpoint, and when execution stopped at that point, the variables showing were all the variables form my first unloaded project… with values!  That project is not even loaded.

I then unloaded that project and completely unloaded Glider.  I ran Glider again and loaded the second project and added a breakpoint in the same place as before, and there are no variables listed.

Hello Schizoid,

A new feature of Glider is you can now hover over variables (in the editor) to see their value. Is this working properly?

Regards,

M.Y. Developers

M.Y, Hovering over variables does work… Sometimes. Ido have to hover over a couple of times ona few occasions. One time hovering over the variables didn’t work at all. Are you asking because of my previous post in this thread? Just curious since I don’t mention that before. I was a bit shocked to see variables and values (on the variables tab) that I had defined In a previously loaded, and the unloaded, project. Thanks, --john

[REMOVED]

M.Y, Hovering over variables does work… Sometimes. Ido have to hover over a couple of times ona few occasions. One time hovering over the variables didn’t work at all. Are you asking because of my previous post in this thread? Just curious since I don’t mention that before. I was a bit shocked to see variables and values (on the variables tab) that I had defined In a previously loaded, and the unloaded, project. Thanks, --john

We ask because hover over variables uses an entirely different way to get the debug state from the simulator. This is the way we intend to replace the current debugger implementation with. It will allow us to do many more and exciting things, like extract autocomplete symbols from a running program, match the static analysis results to the debugger results to improve accuracy and retrieve keys that can’t be retrieved via pairs, and implement watches in a way that won’t require eval.

We are working on the debugger and should have a fix within a few days. It would still help us if you could send a specific test case so we can add it to our unit tests and ensure the problem is actually fixed.

Regards,

M.Y. Developers

Just installed LG on my MacBook with Corona Build 2013.1106 and added the latest patches.

As soon as I try to open the Simulator (either in Run or Debug mode) I see a constant stream of this in the console window:

2013-05-13 10:20:16.836 Corona Simulator[52549:707] Runtime error

…CostACakePro(default)/CostACakePro/CiderDebugger.lua:1187: attempt to index upvalue ‘tcpSocket’ (a nil value)

stack traceback:

    [C]: ?

    …CostACakePro(default)/CostACakePro/CiderDebugger.lua:1187: in function ‘socketRecieveLoop’

    …CostACakePro(default)/CostACakePro/CiderDebugger.lua:595: in function <…CostACakePro(default)/CostACakePro/CiderDebugger.lua:593>

    ?: in function <?:218>

Hello Crussel,

Seems like there is something preventing the simulator from making a tcp connection.  Any other errors shown? Can you also send the IDE logs via help-> send logs.

Regards,

M.Y. Developers

The problem might be fixed in the update (1.9.02). It turns out the infinite numbers were not being deserialized properly and it caused incomplete debugger dumps. If this was the problem you were having it is resolved. Please try it and let us know.

Regards,

M.Y. Developers

I’ve just zipped up and sent over my log files.

Regards

Chris

M.Y.

I installed the updates that were available today, and now when I click on the Debug or Run button, nothing happens… program does not run, no breakpoints, etc.

I looked in Tools -> Options, and I noticed this that there is nothing in the Plugins screen… its all purple.  Here is a link to a picture if you need to see it.

Picture is also attached