Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help debuging
#1
Anyone wanna help me debug? For some reason i get stuck at Connected, Sending login information x_x
Reply
#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
#3
Whats the difference on F5 and F8?
Reply
#4
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.
Reply
#5
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:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)