Game Development Community

Debugging Torque Script in Visual Studio

by Martin Ortiz · in Torque Game Engine Advanced · 01/28/2007 (2:59 pm) · 0 replies

I'm a complete noob as far as Torque Scripting..
On the other hand I'm a programmer by trade, and do C++ work in VS.

Is there a way to debug Torque Scripts in Visual Studio?

I just started learning Torque Script...so haven't gotten to the part about compiling torque scripts..

Does Torque Script need to be compiled? (most scripting languages of course, do not)
If so, this is straightforward to do in VS, with a custom build step, even though the torque extension is *.cs, which is the same ext as for C#, it does not matter, one can still create a custom build step for it.

As for syntax highlighting, since Torque Script and C# are so much alike, I personally am not worried about it.
I believe there is a way to have a custom setting for this, but forgot offhand how this is done. I remember a custom highlighting thing for shader programming (CG or HLSL), but again...forgot, will have to look into it again, if one can do custom syntax highlighting for CG/HLSL then, I'm sure it can be done with Torque Script...

So again, one can create custom build step for Torque Scripts...(and hence author your torque scripts in VS),
but the most important thing is to be able to debug in VS....

Can this be done?

:-)