Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help debuging
#2
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)