Can Glider debug with xCode Simulator?

Firstly loving Glider - why did it take me so long :slight_smile:

Now my question is… can I get Glider to debug using the xCode Simulator instead of the Corona Simulator? I’m trying to do some pretty heavy Facebook features, and obviously not being compatible with the Corona Simulator is causing quite a few headaches.

Presumably if Glider could use the xCode sim instead I’d be able to debug happily?

Many thanks, [import]uid: 33275 topic_id: 33587 reply_id: 333587[/import]

Hello SegaBoy,

Thanks for your support!
In theory it should work in any Lua environment. Although it is not supported you could try it like this:

  1. Debug your project in Glider. This will force the IDE to start broadcasting/listening for debugger connections.
  2. Close the Corona window that pops up (dont click the stop debugging button in Glider)
  3. Open the same project in Xcode
  4. Check the Glider output window, if you get a “debugger started” message then it worked!

Please note that this is not yet supported, it has worked in the past but we never test for it.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 33587 reply_id: 133566[/import]

Thanks for the pointers and an excellent product.

I realise you don’t support this so may not be able to help, but just hoped for some further clarification.

I’m attempting the steps above, but struggling with point 2.

I can either close the Corona Sim window as soon as it appears, otherwise it seems to hook into the debugger and I can’t close unless I finish debugging or force close.

Regarding point 3 - do you mean just boot up the app on the Xcode sim?

Should I have breakpoints set?

Many thanks… [import]uid: 33275 topic_id: 33587 reply_id: 133570[/import]

“I can either close the Corona Sim window as soon as it appears, otherwise it seems to hook into the debugger and I can’t close unless I finish debugging or force close.”

Its ok if it hooks into the debugger. You just need to close the simulator (ie option-w) without clicking stop debug from the IDE. At this point you should see the debug toolbar (has the step into/out/over etc buttons) in the IDE without any simulator running.

“Regarding point 3 - do you mean just boot up the app on the Xcode sim?”
Yes. You will need to build it with the debugger library included though. The require CiderDebugger.lua" line must be present for it to make a connection with the IDE.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 33587 reply_id: 133580[/import]

Hey,

Struggling to get this working so giving up - but I’m faced with another problem today. I’ve just booted up Glider but I can’t seem to select a Main Project, whenever I right click a project I only have:

New
Copy
Delete
Close
Properties

I’ve tried several projects - all the same. I’ve also tried rebooting Glider/system - but no luck.

Any help would be extremely appreciated… [import]uid: 33275 topic_id: 33587 reply_id: 133651[/import]

Fixed the Main Project - sorry for the inconvenience. [import]uid: 33275 topic_id: 33587 reply_id: 133653[/import]

Hello SegaBoy,

Thanks for your support!
In theory it should work in any Lua environment. Although it is not supported you could try it like this:

  1. Debug your project in Glider. This will force the IDE to start broadcasting/listening for debugger connections.
  2. Close the Corona window that pops up (dont click the stop debugging button in Glider)
  3. Open the same project in Xcode
  4. Check the Glider output window, if you get a “debugger started” message then it worked!

Please note that this is not yet supported, it has worked in the past but we never test for it.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 33587 reply_id: 133566[/import]

Thanks for the pointers and an excellent product.

I realise you don’t support this so may not be able to help, but just hoped for some further clarification.

I’m attempting the steps above, but struggling with point 2.

I can either close the Corona Sim window as soon as it appears, otherwise it seems to hook into the debugger and I can’t close unless I finish debugging or force close.

Regarding point 3 - do you mean just boot up the app on the Xcode sim?

Should I have breakpoints set?

Many thanks… [import]uid: 33275 topic_id: 33587 reply_id: 133570[/import]

“I can either close the Corona Sim window as soon as it appears, otherwise it seems to hook into the debugger and I can’t close unless I finish debugging or force close.”

Its ok if it hooks into the debugger. You just need to close the simulator (ie option-w) without clicking stop debug from the IDE. At this point you should see the debug toolbar (has the step into/out/over etc buttons) in the IDE without any simulator running.

“Regarding point 3 - do you mean just boot up the app on the Xcode sim?”
Yes. You will need to build it with the debugger library included though. The require CiderDebugger.lua" line must be present for it to make a connection with the IDE.

Regards,
M.Y. Developers [import]uid: 55057 topic_id: 33587 reply_id: 133580[/import]

Hey,

Struggling to get this working so giving up - but I’m faced with another problem today. I’ve just booted up Glider but I can’t seem to select a Main Project, whenever I right click a project I only have:

New
Copy
Delete
Close
Properties

I’ve tried several projects - all the same. I’ve also tried rebooting Glider/system - but no luck.

Any help would be extremely appreciated… [import]uid: 33275 topic_id: 33587 reply_id: 133651[/import]

Fixed the Main Project - sorry for the inconvenience. [import]uid: 33275 topic_id: 33587 reply_id: 133653[/import]