Game Development Community

dev|Pro Game Development Curriculum

Enhanced TelnetDebugger

by Tom Spilman · 07/19/2005 (3:34 am) · 102 comments

Download Code File

*** This resource is obsolete and the code is now included in all shipping versions of the Torque engine ***

Thanks to all the community members that made this resource possible!

Team Sickhead

www.sickheadgames.com/images/shbug_03.png

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.

#61
08/08/2005 (10:43 pm)
@Andy - I'll look into allowing an undo after file reloads, but i still feel the message needs to be there. For main.cs changes that are triggered by Torsion i'll see about disabling the message all together.

As for reloading scripts while debugging, i'm already thinking about implementing it.
#62
08/09/2005 (4:09 am)
I get this error after installing the enhanced debugger(latest at top of this thread)...when building a Release version of the Torque Demo 1.3
--------------------Configuration: Torque Demo - Win32 Release--------------------
Linking...
consoleInternal.obj : error LNK2001: unresolved external symbol "public: char const * __thiscall CodeBlock::exec(unsigned int,char const *,class Namespace *,unsigned int,char const * *,bool,char const *)" (?exec@CodeBlock@@QAEPBDIPBDPAVNamespace@@IP
APBD_N0@Z)
../example/torqueDemo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

torqueDemo.exe - 2 error(s), 0 warning(s)

... any ideas? It doesn't happen with the debug version of Torque.
#63
08/09/2005 (5:21 pm)
@Andy - It sounds strange to me. I compiled it over here in release mode and it linked just fine. Make sure your code is patched with this resource properly and be sure to do a full release rebuild.
#64
08/11/2005 (12:20 am)
Maybe i should grab the 1.3 code from CVS? I'm just using the shipped version at the moment.
#65
08/11/2005 (12:23 am)
@Andy - I merged the resource against 1.3 from the installer. I'll take another look at this in the morning.
#66
08/12/2005 (11:22 pm)
I did a clean install of 1.3 that was the one every gets when you buy it (ie not from CVS) and the enhanced telnet debugger patches on this page and it works! Both Release and Debug - I must have tweaked something before and screwed up the code.
#67
08/13/2005 (10:25 pm)
New problem - I can run release and debug versions of Torque via Torsion now but if I try to launch torquedemo_debug.exe or torquedemo.exe by itself (from the folder) it shows the first command window but never loads Torque - it just sits there. If this is a telnetdebugger thing how can I disable it to run it without Torsion? If it's not a telnetdebugger how do I fix it?
#68
08/13/2005 (10:30 pm)
@Andy:

If you have a line like this in one of your script files:

dbgSetParameters(6060, "qwerty", true);

Then comment it out when not debugging. The true value at the end of the dbgSetParameters function tells the Torque engine to wait for the debugger response before starting script execution. That may or may not be your problem, but is just a guess.

B--
#69
08/13/2005 (10:57 pm)
BOING! Fixed again. Nice work thanks Brandon :) It was at the top of my main.cs in the example folder. Who writes this in there? Torsion? Or is put in there when I add the telnetdebugger patches?

To disable it, I just changed the parameter to false - too easy!
#70
08/14/2005 (8:26 am)
@Tom- thanks for this great resource. EnhancedDebugger + T2D 1.0.2 + Torsion seems to work great so far! Even though I use SLickedit for my script editor, I plan to buy Torsion as a standalone debugger utility. Glad to see the post from Ben G. that this will get added to the Torque 1.4 codebase also.
#71
08/14/2005 (4:12 pm)
A couple of feature requests

- Find
- Find in Scripts
- Remove all breakpoints
- Goto / List breakpoints
#72
08/14/2005 (6:18 pm)
@Andy - Find is already in there, but all the rest is coming in the alpha 2 release.

Also FYI everyone... please move discussion of Torsion itself over to the resource or to our forums (no registration required). I'd like to keep this page focused on the issues in the TelenetDebugger patch.
#73
08/14/2005 (7:41 pm)
@Alex - I'm curious... what specific features from SlickEdit would you like to see in Torsion? Please respond in the Torsion resource or in our forums.
#74
08/14/2005 (8:02 pm)
@Tom, OK I posted some comments on the Torsion resource page- sorry for sounding like such a Slickedit zealot- I can't help it!
#75
08/15/2005 (3:13 am)
Moved to other forum
#76
09/19/2005 (6:25 pm)
It would be nice to see a little update to this for 1.4 RC2 ;).

- Eric
#77
09/19/2005 (6:29 pm)
That's the plan Eric... it should be within a week or two.
#78
09/19/2005 (9:03 pm)
Is the 1.4 RC2 due in a few weeks or the Enhanced Telnet Debugger? To simplify things, when are both due and will the 1.4 RC2 be announced?
#79
09/19/2005 (10:14 pm)
@Andy - As far as i know 1.4 RC2 is already out. Within the next two weeks i plan on having the next update to the TelnetDebugger which will have the merged updated source files for TGE1.3, TGE1.4RC2, T2D, and TSE.
#80
10/15/2005 (5:05 pm)
Any news on the 1.4RC2 support? ;)

- Eric