|
|
F�ggel�k D. A PHP debuggereA debuggerr�l
A PHP 3 tartalmaz h�l�zat-alap� debugger t�mogat�st.
PHP 4 nem ny�jt be�p�tett t�mogat�st a hib�k k�vet�s�re,
b�r k�ls� debuggerek rendelkez�sre �llnak. A
term�k tartalmaz
egy debuggert, �s ingyenes debuggerek is el�rhet�ek, mint a
a vagy az
(APD).
User Contributed Notes A PHP debuggere |
|
[email protected]
24-Aug-1999 10:06 |
|
--
PHPEd, also listens the port. Besides, captured messages are interpreted,
and editor takes you to line where the reported error occured.
|
|
[email protected]
08-Jul-2000 02:22 |
|
I'm copying this note from a post I found on Geocrawler. I think Thierry
diserves a round of applause for actually posting something useful,
so...
HooRah!!!!
I'm going to add some syntax
highlighting to the code to make it cute, and then we'll
see.
FROM: Thierry Boudet
DATE: 12/01/1998
01:35:21
SUBJECT: RE: [PHP3] [php3] get the debug
info
Rui Barreiros a
�crit:
>
> how can i get the
debug info that the php3 sends to port 2000 (in my
>
case)
>
=====================================================================
#!/usr/bin/perl -w
use Socket;
$port = 7869; # PHP debugger
my
$proto = getprotobyname('tcp');
socket(Server,
PF_INET, SOCK_STREAM, $proto)
or die "socket: $!";
setsockopt(Server,
SOL_SOCKET, SO_REUSEADDR, pack("l",1))
or die "setsockopt: $!";
bind(Server, sockaddr_in($port, INADDR_ANY))
or die "bind: $!";
listen(Server, SOMAXCONN);
for ( ; $paddr =
accept(Client, Server); close Client)
{
my ($port, $iaddr) = sockaddr_in($paddr);
my $name = gethostbyaddr($iaddr, AF_INET);
print
"------------- $name $port --------";
while (<Client>) { print; }
}
=====================================================================
|
|
[email protected]
26-Sep-2000 07:19 |
|
[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";
|
|
[email protected]
27-Oct-2000 11:12 |
|
want a simple way to get errors from php?
from the command line
simply type:
"/path-to-php/php.exe
your-php-file.php3"
and It'll throw back useful
errors
use -q option before the filename to Suppress HTTP Header
output.
|
|
[email protected]
09-Mar-2001 01:05 |
|
There is actually a symbolic debugger for php4 : BIKE.
It only
works on unix/linux, and is a bit limited, but it's better than the
existing (rather limited) system and typing tons of echos.
See it
at :
|
|
06-Apr-2001 12:26 |
|
Hi,
under this address you will find a good featured debuger for PHP
.
It is
supposed to work together with and
also with MS Visual Studio.
Hoping that it helps Patrick Wolf
|
|
[email protected]
17-Jun-2001 02:46 |
|
Both php3 and php4 ( dbg extention ) are supported by Quanta Plus (
)
It's a full featured IDE for Unix ( KDE )
which supprt PHP
too.
|
|
23-Aug-2002 05:51 |
|
check out this great, cross-platform, my favourite php debugger:
it
not only allows "debugging PHP programs locally or remotely,
including debugging in CGI or other Web Server API environments",
but, besides, is a full fledged Perl, PHP, Python, Tcl, and XSLT IDE.
based on mozilla.
current version 1.2.9 costs some money ($29.50
non commercial), previous version 1.1 is free (non commercial).
|
|
|
| |