Mirage Source
help debuging - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: help debuging (/showthread.php?tid=698)



help debuging - Forte - 31-01-2007

Anyone wanna help me debug? For some reason i get stuck at Connected, Sending login information x_x


- lucidar - 01-02-2007

Debugging 101!
Well you know it's connected sooo... we'll just jump to the server side at start at the beginning.. ish!
Server: modServerTCP->Sub IncomingData()
Cause a break somewhere after it gets the data!
[Image: debug101kk9.jpg]
Just click where that red dot is on any line past 'frmServer.Socket(Index).GetData ~'
that'll cause a break in your server, pausing it on that line right before it is executed.
Put your mouse over Buffer (anywhere) and make sure it's sendign the right packet.
Try the same thing with handledata(), senddatato(), then go to the client and retry until you figure out where it is 'freezing'.

Sure, there are faster ways, but thats the funnest Big Grin

You can queue up multiple breaks throughout your source. Just hit F5 or Continue to continue your server as per normal (until/unless it hits another break or soemthing).
Be reminded though, causing breaks can lead to 'timeouts' on either client or server side.


Even if you already knew this, I'm sure someone else didn't so idc.


- William - 01-02-2007

Whats the difference on F5 and F8?


- Dragoons Master - 01-02-2007

F5 will run the code, and will not stop until a Stop or an error. F8 runs only one comamnd and stops again, very usefull.


- Forte - 01-02-2007

ahh i fixed it =] thanks for the help, didint know about F8 and such, unsurprisingly the error was just a bunch of messy coding :roll: