note 8726 added to The PHP Debugger
| From: | jruskiewicz at techtracker dot com | Date: | Tue, 26 Sep 2000 05:19:09 +0000 |
| Subject: | note 8726 added to The PHP Debugger | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5367@lists.php.net to get a copy of this message | ||
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/debugger.php