Game Development Community

Can't get Torsion to debug

by Andy Hawkins · in Torque Game Builder · 09/10/2008 (6:26 am) · 4 replies

I have TGB.exe sitting outside my game project folder.

When I run the exe it works fine, but I can't get Torsion to run - it just locks up. Where is everything supposed to be so I can debug instead of having to set echo statements to debug it?

Folder structure...
www.drewfx.com/Torque/errors/FolderStructure.jpg
Project Settings in Torsion
www.drewfx.com/Torque/errors/ProjectSettings_Torsion.jpg
Configuration Settings in Torsion
www.drewfx.com/Torque/errors/ConfigSettings_Exe.jpg

#1
09/10/2008 (6:59 am)
I have a setup similar to that working for me. Are you sure that the exe's location is the issue? If you move the exe to the project folder and change the associated torsion project settings does it work? Could this be something completely unrelated like your firewall interfering with torsion connecting to the app?
#2
09/11/2008 (7:09 am)
I just tried that then and I get this far in the log...

Compiling managed/brushes.cs...

TGB.exe is running in memory but nothing happens.
#3
09/11/2008 (1:23 pm)
If it is running in memory but not doing anything, most likely it is waiting for Torsion to connect to it and for some reason Torsion is unable to.

When you launch from torsion it inserts the dbgSetParameters line at the top of your main.cs, the last argument (true) in that command means wait for a connection from the telenet debugger.

Check that your password and port numbers match up. Also you can try changing the last dbgSetParameter argument to false, and see if that results in your game starting up normally (although still perhaps not debugging with torsion).
#4
09/11/2008 (4:51 pm)
I fixed it! Thanks for the feedback.

I was creating the Torsion project in the actual game folder. When I created a new project one folder up where the exe was it worked properly.

www.drewfx.com/Torque/errors/TGBFixed.jpg