Fixed bug in TelnetDebugger TGEA 1.0.2 preventing Torsion debug
by Ross Pawley · in Torque Game Engine Advanced · 08/21/2007 (9:37 am) · 11 replies
The bug reported in this thread www.garagegames.com/mg/forums/result.thread.php?qt=66266 which caused TGEA to hang after a breakpoint was hit has been fixed per below.
Go look into console/telnetDebugger.cpp and find the TelnetDebugger::sendBreak() function.
After the line
delete this loop so that the above "send()" is the last line of the function
This code is duplicate from the breakProcess() function and was causing TGEA to hang forever in that function.
Go look into console/telnetDebugger.cpp and find the TelnetDebugger::sendBreak() function.
After the line
send("\r\n");delete this loop so that the above "send()" is the last line of the function
while(mProgramPaused)
{
Platform::sleep(10);
checkDebugRecv();
if(mDebugSocket == InvalidSocket)
{
mProgramPaused = false;
removeAllBreakpoints();
debugContinue();
return;
}
}This code is duplicate from the breakProcess() function and was causing TGEA to hang forever in that function.
#2
08/21/2007 (11:10 am)
Thank You!
#3
08/29/2007 (12:05 am)
ThanX
#4
08/29/2007 (4:42 am)
Thanks!
#5
08/31/2007 (7:30 pm)
Thanks :D
#7
Mine is a fresh TGEA install of 1.0.3, so I don't think it's something I've done.
(The fix worked fine, though, thanks Ross!!!)
11/02/2007 (3:52 pm)
FYI I'm running TGEA 1.0.3 and the problem is still in there. The while loop above appears to be in the 1.0.3 distribution. Mine is a fresh TGEA install of 1.0.3, so I don't think it's something I've done.
(The fix worked fine, though, thanks Ross!!!)
#8
11/02/2007 (5:53 pm)
@Lee, it was probably just overlooked or something, or someone accidentally reverted the file or something of that sort. If you see anyone else mentioning the problem please do direct them to this thread :) Thanks.
#9
11/02/2007 (7:10 pm)
Just downloaded the SDK and installed. This fix is in 1.0.3.
#10
11/02/2007 (9:48 pm)
That's messed up. I just checked a more recent download I have of it and the fix is in there. Perhaps there were different versions of 1.0.3 on the website at some point? I certainly didn't add the offending code to mine!
#11
11/03/2007 (2:35 am)
Don't know what's going on. I put together the 1.0.3 release and there was only ever one put up.
Torque Owner asmaloney (Andy)
Default Studio Name