Game Development Community

Enhanced telnet debugger question

by Alex Rice · in Torque Game Builder · 06/01/2006 (7:57 am) · 4 replies

I read that Tom Spilman's enhanced telnet debugger is included in 1.4 hence should be in TGB as well. I am using Codeweaver for my editor/debugger. Is there any options that are required to get all the telnet debugger to use all available features? In general it was just more reliable for breakpoints and stepping through code, but I forgot the details. Just wondering if any if you TGBers are aware of this.

#1
06/01/2006 (10:56 am)
Hi Alex.

Not sure exactly what your asking, but i'll take a shot at it.

The TelnetDebugger update adds the following features:

  • You can now debug main.cs.
  • You can debug code outside of function bodies.
  • A new command for 'break on next instruction'.
  • The ability to send breakpoints before the debug session begins.
  • Fixed the 'step over' command which would behave erratically.
  • Breakpoints can be set before a script is loaded.
  • If a breakpoint is set on a blank line it moves it to a valid line.
All this functionality is included in TGB RC1... you don't need to patch anything.
Now i'll have new update out soon which will probably not make it into TGB for launch. It will add:

  • You can change script code and update the game when at a breakpoint (aka Edit and Continue... see my plan post).
  • [li]The ability to expand objects and array variables.
I'm sure once i release this update and it proves to be stable, that the GG guys will add it to an update to TGB.
#2
06/01/2006 (11:19 am)
Hi Tom - what I meant was in the setDbgParameters() call is anything special required- extra parameters for example, to get the TelnetDebugger goodness to run?

I'm actually using the Codeweaver Debug Setup Wizard though and I think it calls setDbgParameters on the fly when you hit F5.
#3
06/01/2006 (11:33 am)
I only added one new parameter to setDbgParameters():

dbgSetParameters( int port, string password, bool waitForClient )

The new waitForClient parameter tells the TelnetDebugger to start in a break'ed mode waiting until a client connects and issues a step or continue command. It defaults to the old behavior and doesn't wait for a client to connect.
#4
06/01/2006 (11:40 am)
Ah OK thanks. It's working great in TGB + Codeweaver. I just wanted to make sure I wasn't missing any of the features.