PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Utilizzare il Debugger> <Error Reporting
Last updated: Fri, 18 Jul 2008

view this page in

Debugging PHP

Indice dei contenuti

Il debugger

PHP 3 include supporto per il debugger network-based.

PHP 4 non ha un sistema interno per il debugging. È possibile utilizzare comunque dei debugger esterni. » Zend IDE include un debugger; ci sono anche delle estensioni di debugging gratuite come DBG su » http://dd.cron.ru/dbg/ oppure » Advanced PHP Debugger (APD).



Utilizzare il Debugger> <Error Reporting
Last updated: Fri, 18 Jul 2008
 
add a note add a note User Contributed Notes
Debugging PHP
Juan Rivera
23-Mar-2008 02:08
Here is another PHP IDE that supports both DBG and XDebug:

http://www.jcxsoftware.com/vs.php

You can also debug JavaScript and Php within the same debugger session.
Keith Roberts
10-Mar-2008 05:05
Nice free GPL PHP debugger. I love it. It works with DBG, Gubed, or Xdebug.

http://protoeditor.sourceforge.net/
ricardo at sismeiro dot com
05-Oct-2007 05:35
class_blackbox.php

http://sismeiro.com/php/class_blackbox.phps

index.php

<?php
 
 
require_once('class_blackbox.php');
 
 
$debugger=new blackbox();
 
 
$t=1;
 
$z=11/$c;
 
 
$ff='asd';
 
 
$d=(33*$z)+$x;
 
  echo
"<pre>";

 
print_r($debugger->data);
 
?>
seaside
27-Dec-2006 09:02
Meanwhile, a Windows binary is available too:

  http://www.turingart.com/downloads/phpDebuggerWin.zip
software at turingart dot com
11-Dec-2006 04:06
I've started creating an external debug server for PHP. A PHP app require_once's a TADebugger(), which communicates with the debug sever. Find the OS X universal binary here [PHP source sample included]:

    http://www.turingart.com/downloads/phpDebugger.zip

Currently, TADebugger allows to post these properties back to the debug server:

- Call backtraces
- String messages
- Source files, which were referenced by a backtrace call

Note, that the binary is a early version.
14-Sep-2006 11:51
NuSphere Php IDE PhpED (www.nusphere.com) includes dbg from dd.kron.ru actually
online _ use _ only == hotmail.com
16-Mar-2006 07:41
I still find that printing out variable values at problem points in the code is one of the easiest ways for me to debug.  If you're interested in knowing the full contents of an object/array/scalar, then use

var_dump($var).
linus at mccabe dot nu
24-May-2004 04:04
Another free (GPL) debugger is Gubed, http://gubed.sf.net .
Currently available for Linux, but also Windows soon.
tulpe at atomar dot de
07-Feb-2003 11:09
Tired of manualy printing out your variables and arrays for debugging?

Take a look at my debuglib at:

http://www.atomar.de/public/code/debuglib/debuglib.demo.php

Happy debugging!

Thomas Schüßler
joe_fitchnospam at hotmail dot com
18-Dec-2002 04:15
I've tried many debuggers and PHP IDEs including Zend IDE, Komodo, PHPEdit, PHPEd and Maguma Studio.
 After all I'm sure that the best one debugger is dbg. It supports breakpoints even conditional ones,  all kind of steps throu php code, watch etc, so it's a fully functional debugger indeed and profiler too. Fortunately, it's an open-source product as PHP itself. Unfortunately, it does not contain any front-end, but 3rd party PHP IDEs. Seems, as for an IDE the best one is PHPEd 3.1 (http://www.phped.com), former PHP IDE from Ergin Soysal.
I was also deeply impressed with IonCube accelerator performance (http://www.ioncube.com). Commercial version of IONCUBE is many times faster than the commercial one from Zend (www.zend.com). Huh ?
Hope this info would help someone to find the better way faster.
23-Aug-2002 02:51
check out this great, cross-platform, my favourite php debugger:
 http://www.activestate.com/Products/Komodo/

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).
steve at stevedix dot de
09-Mar-2001 11: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 :

http://www.ozemail.com.au/~djf01/body.html
bob at bobbydigital dot fsnet dot co dot uk
27-Oct-2000 08: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.
jruskiewicz at techtracker dot com
26-Sep-2000 04: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";

Utilizzare il Debugger> <Error Reporting
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites