Game Development Community

TGB Torsion Behaviors

by JD Scogin · in Torsion · 09/22/2007 (1:16 pm) · 4 replies

I was using the Demo of Torsion with TGB. It worked find. I paid the price and now have the complete version. I redownloaded it. (Mistake?)
Anyway, before I upgraded, I could set breakpoints in Behaviors. Now, it does not seem to see the breakpoints in my Behavior. Not sure if I set something up wrong or what.
It is a pain since I am modifing a behavior and need to trouble shoot it.
Thanks
Jd

I also tried Torsion 1.1.130 beta and it does the same thing. Must be something set up wrong. Arg.

Update: if I run the exe from Torsion, then set the breakpoint it works. But if I set the breakpoint then run the exe, it does not. Strange.

#1
09/24/2007 (6:57 am)
You have to run the exe from Torsion for debugging. It adds a few lines of code to your main.cs that allow the debugger to connect (which it removes when you end the debug session)

// BEGIN TORSION
eval( "dbgSetParameters( 6060, \"password\"" @ ( $dbgVersion > 0 ? ", true );" : " );" ) );
// END TORSION
#2
09/24/2007 (9:09 am)
I am not sure I understand this. I press the run button in Torsion. Is that running the exe from Torsion?
Or do I have to run the exe then set the breakpoints? That is what I have to do now.
#3
09/24/2007 (9:34 am)
You must run the exe from inside Torsion, so it can add a couple lines to your main.cs file that might allow a debuggin sesion... if you doit that way, and put the breakpoints in the IDE, then you should be able to debug your code easily.
#4
09/25/2007 (9:14 am)
You should be able to set breakpoints before or after you run your game, as long as you run your game from torsion.