Debugging With Torsion on the Mac for IPhone
by Nigel Bond · in Torque Game Builder · 05/14/2011 (4:21 am) · 3 replies
I have been able to setup my environment to use iTGB2D and Torsion (sitting on Crossover). This can debug to the iphone application(which is cool) - just make sure you use the Iphone's IP [this should be in the newb tutorial btw].
My problem is that the application does not seem to really stop!
I can debug and if quick I can get it back working again but if I am not quick it goes bonkers.
Is there something I need to do to stop the application completely? It looks like 1 thread is stopped but other threads carry on running, or they are queueing the work and when I set it going again "it goes bonkers".
OR, is this because I am debugging on a Mac but using Torsion(on crossover) and it is not really up to the job?
Advise please. I welcome anyone telling me I am a newb(even though I am 43) but I think whilst the parts of the system are strong the integration and instructions on that are weak. I hope I have just not found the documentation and someone will point me to it. Even then, if there is documentation, why did it not present itself to newbs!?
Thanks
Nigel
My problem is that the application does not seem to really stop!
I can debug and if quick I can get it back working again but if I am not quick it goes bonkers.
Is there something I need to do to stop the application completely? It looks like 1 thread is stopped but other threads carry on running, or they are queueing the work and when I set it going again "it goes bonkers".
OR, is this because I am debugging on a Mac but using Torsion(on crossover) and it is not really up to the job?
Advise please. I welcome anyone telling me I am a newb(even though I am 43) but I think whilst the parts of the system are strong the integration and instructions on that are weak. I hope I have just not found the documentation and someone will point me to it. Even then, if there is documentation, why did it not present itself to newbs!?
Thanks
Nigel
#2
I haven't really paid much attention to cross-platform debugging, so this is just my best-guess to the issues.
05/14/2011 (8:35 am)
I'd suggest disconnecting before doing anything to end your app on the device or sim, so that you don't have to worry about speed. I think that the issue probably lies with the debugger itself, as it is built for Windows devices (the entire reason you find yourself using CrossOver in the first place), so while the output is the same, the process information that the debugger uses to kill itself off could be entirely different.I haven't really paid much attention to cross-platform debugging, so this is just my best-guess to the issues.
#3
Much appreciated
05/14/2011 (2:48 pm)
Thanks for that. How do you debug your IPhone application? I would clearly like to debug the script and had assumed that the script would not not be run directly from xcode, maybe I was wrong. I would like to understand what is a good setup for debug of the IPhone application so that I can stop it running inspect some fields and then continue.Much appreciated
Torque Owner Nigel Bond
If you are trying to debug with Torsion, do not click on the 'debug' button, click on 'connect'. So you start the remote application on the Iphone(making sure debug is enabled for the deploy[I think it is be default for normal stuff so dont worry to much]) and then connect to it using Torsion.
Note: the IP for the iphone will be under settings. It will have been set by the wireless router probably unless you have your mac handing out ip addresses. That is the IP that Torsion needs to connect to.
Sometimes it will not connect so press 'restart' and hopefully it will.
Thanks
Nigel