Game Development Community

Debugging source code

by Bill Gower · in Torque Game Engine · 03/20/2008 (5:39 pm) · 4 replies

Is it possible when stepping through my script code to step into the c++ source code?

Bill

#1
03/20/2008 (5:46 pm)
Not exactly sure what you are asking. If you compile a debug build in VS you can set breakpoints and step through the C++ code just like you can in Torsion.

If you need both to be working, start the debugging in VS and then manually start the debugger and connect to it with Torsion.

dbgSetParameters(6060, "password");
#2
03/20/2008 (5:52 pm)
Yes I wish to do the second. I have tried starting my debugger in vs 2005 and I get the message "failed to open main.cs" and then it shuts down.

Bill
#3
03/20/2008 (6:14 pm)
You need to set your "working directory". Goto your project settings and set the working directory to where you base Torque files reside.
#4
03/20/2008 (6:24 pm)
Perfect. Thank you so much, Peter. This is exactly the reason why I chose Torque over other similar type apps, the forums are active and the responses are excellent, timely and correct.

Bill