超越PHP PHP动态 | 经典文章 | CLASS | 相关下载 | 常见问题 | FORUM | WIKI | 在线手册
Site search:    
<其它不兼容使用调试器>
Last updated: Fri, 22 Jun 2007

附录 E. PHP 的调试

关于调试器

PHP 3 包含有基于网络的调试支持。

PHP 4 并没有内部调试器。但是您可以使用外部调试器。Zend IDE 就是其中之一,它包含一个调试器。也有一些免费的调试器,比如在 http://dd.cron.ru/dbg/ 上的 DBG,Advanced PHP Debugger(APD)或者 Xdebug,它甚至有一个在本节中说明的和 PHP 3 的调试功能兼容的调试界面。




add a note add a note User Contributed Notes
PHP 的调试
cbarnett at crossbeam dot com
08-Jul-2000 11: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 閏rit:
            >
             > 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;   }
                 }
          =====================================================================

<其它不兼容使用调试器>
 Last updated: Fri, 22 Jun 2007
view source | feedback | send page | sitemap | aboutus   
Copyright ® 2002-2003 PHPE.NET. All rights reserved
Last updated:2002-11-22