note 8726 modified in The PHP Debugger by ronabop

From: Date: Fri, 29 Sep 2000 15:29:02 +0000
Subject: note 8726 modified in The PHP Debugger by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5665@lists.php.net to get a copy of this message
[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"; http://www.php.net/manual/the-php-debugger.php

« previous php.notes (#5665) next »