Game Development Community

Debugging cs scripts using Vis Studio 6

by Andy Hawkins · in Torque Game Engine · 08/05/2005 (10:25 am) · 32 replies

I was looking at the new tute at smlabs of using TBE to debug cs scripts.

How do I use/setup Visual Studio 6 to debug scripts and handle Torque projects. Is it possible?
Page «Previous 1 2
#1
08/05/2005 (11:11 am)
VS6 cannot debug scripts without some hefty modifications. There might be a resource to do it but it can't happen out of box.
#2
08/05/2005 (12:36 pm)
@Andy the tutorials at smdLabs shows Torision and TorqueDev using Tom Spilmans 'Enhanced Debugger' resource to debug scripts. I did use TBE in one of the quickClip videos to show people who use TBE how to apply Tom's enhanced debugger patch into the Torque Engine. This 'patch' gives software like Torsion and TorqueDev more features and stability when debugging script files.

If do you spend the time to integrate script debugging into VisualStudio, don't forget to share! :)

B--
#3
08/05/2005 (5:03 pm)
Yeah I tied Torsion and the debugging is broken in the alpha build. Well more specfically, the break points. I'll give TBE a go. Is that Eclipse and all that?

And yes I would share if I figured out how to debug in Vis Stud. Surely the GG crew would know and they built the code in Vis Stud I assume????
#4
08/05/2005 (5:16 pm)
@Andy: The debugging works great in Torsion, especially after the updates to the 'enhanced debugger', you must have set something up wrong. Also, TBE is only good for compiling an .exe of the Torque Game Engine, it does not debug scripts to my knowledge.

B--
#5
08/05/2005 (9:00 pm)
Well I installed it out-of-the-box so to speak off the website, break points didn't work and then I checked the forums and most people were having the same problem. It was stated something like "yeah this is happening because this is the alpha".

So where can I find the updates? Are they obvious from the front page?
#6
08/05/2005 (10:23 pm)
Re-apply this resource and the debugger features of Torsion should work great. I've tested it for quite a few hours while doing videos and other assorted tasks.

www.garagegames.com/uploaded/code/8294.telnetdebugger2.zip

You may want to watch the video link below, it shows you how to make sure the debugger resource is applied correctly.

torque.smdlabs.com/media/freeTutorials/quickClips/tbe.htm

B--
#7
08/08/2005 (8:56 am)
Okay I got Torsion, used 1.3 of the torque code and added the debugging enhancement and got stuck again. Please see this thread...

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8294
#8
08/08/2005 (11:05 am)
@Andy - I updated the resource to include the pre-patched TGE 1.3 files now as well as ones for 1.4. This should solve your problem.
#9
08/08/2005 (4:19 pm)
@Tom - indeed it does. For others, I posted a quick description on what I did to fix the problem and recompile in the other thread. Thanks again Tom :)
#10
10/26/2006 (9:09 am)
Hello.

I just installed Torision and am using v1.4 of Torque3D. I successfully created a project but when I hit F5 to run my program, nothing much happens. It complains about some script errors and I say "Yes" to continue, ignoring the errors supposedly, but then...nothing. I have one breakpoint set, but it doesn't seem to matter if there's a breakpoint or not.

The weird thing is I've got things set up the same as my office mate and his system seems to work fine. Any ideas what's going on with my setup?

Note: FWIW my project is the MazeRunner "prototype" from the book and the script erros are in GPGTBase somewhere. If it's possible that these script errors are causing the problem, I can provide more info.

Thanks.
#11
10/26/2006 (9:28 am)
Say NO to the script errors and then you will see an error in red in the console log in Torsion. Double click on it to jump to the error in script. If you get please email me your console.log after the error and I'll see what I can see. Click on my name here to get my email address.
#12
10/26/2006 (10:02 am)
This is the error it gives:
prototype/server/scripts/GPGTBase/Trigger/TriggerDataMethods.cs Line: 68 - Syntax error.

And here's the code in question:

65 function ShapeBaseData::onTrigger( %DB , %Obj , %TriggerState )
66 {
67 // Do something
68 };

Strange why this would be an error...
#13
10/26/2006 (10:05 am)
The error is most probably in the function above...wait, it's because you have a semi-colon at the end of the line on line 68. That's only needed for datablocks and new statements, not normal function bodies.
#14
10/26/2006 (10:36 am)
Heheh, then count one error for the code accompanying the book. :)

BTW, deleting the semicolon got rid of the error but the Torision "lockup" still occurs. I hit F5 and then nothing. Do I need to have some other application running before hitting F5 or should it all be automatic?

Thanks.
#15
10/26/2006 (10:44 am)
Have you pointed Torsion to the correct exe file (creation of a Project iirc) so that it knows what specific environment and executable to run?
#16
10/26/2006 (1:00 pm)
I've pointed it at the same "Demo.exe" executable that I double-click on to run it outside the IDE. The path in the Torision Project File is the full path to that Demo.exe file.

Cheers.
#17
10/26/2006 (3:51 pm)
I get this sometimes, and it is usually down to an error in the assets or the engine, not the scripts, however there is no way to find out where the problem is and you will probably have to rollback to a previous known working version of your game - you need to be backing up every nite for this to be effective so you don't lose much time - it would be something you added / changed that causes the problem.

To make sure it's your code and not your setup, do a fresh install of Torque to a new folder, and run Torsion on starter.fps - it should run properly. If it does then it's your code that needs fixing, if it doesn't then it's a problem with Torque and Torsion setup.
#18
11/02/2006 (1:24 pm)
Thanks, Andy.

I tried that and it still "locks up" (i.e. nothing seems to happen). If this means I've got a Torque or Torision setup problem, do you have any suggestions for how to "debug" that? I've already tried reinstalling both.

Cheers.
#19
11/02/2006 (3:52 pm)
Oh - did you install the Telnet debugger? This can cause a lock up if the original Torque engine is not moded - I think after version 1.4 it was included. Head over here for instructions. Basically you install the debugger changes to your Torque engine, recompile, run Torsion and away you go.

Here's the link...
Telnet Debugger
#20
11/06/2006 (10:04 am)
I have version 1.4, so thought it was included already. Do you have to launch it seperately?

Thanks.
Page «Previous 1 2