note 8726 deleted from debugger by felipe

From: Date: Mon, 26 May 2008 19:56:06 +0000
Subject: note 8726 deleted from debugger by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139818@lists.php.net to get a copy of this message
Note Submitter: jruskiewicz at techtracker dot com ---- [Ed: Note: Python loop control is managed through indentation, so you will need to reindent this errata note] python remote debug listener... #!/usr/bin/python #Used for remote debugging of PHP programs. from socket import *; #connect and bind to the port s = socket(AF_INET, SOCK_STREAM); s.bind("",7869); s.listen(5); #little info to print out print "PHP Remote Debug Application"; #let us try this thing... try: while 1: client, addr = s.accept(); tmp = client.recv(1024); while tmp: print tmp, "\n"; tmp = client.recv(1024); client.close(); except: s.close(); print "Exit";

« previous php.notes (#139818) next »