|
|
 |
Ap茅ndice E. Depuraci贸n en PHP
PHP 3 incluye soporte para un depurador basado en red.
PHP 4 no cuenta con una herramienta de depuraci贸n
interna. Aun as铆, puede usar uno de los depuradores
externos. El entorno integrado de
desarrollo Zend incluye un depurador, y existen
tambi茅n algunas extensiones de depuraci贸n gratuitas
como DBG en http://dd.cron.ru/dbg/, el Depurador Avanzado de PHP (APD, por sus
siglas en Ingl茅s) o Xdebug, el cual posee incluso una
interfaz de depuraci贸n compatible con la funcionalidad de
depuraci贸n de PHP 3, tal y como se describe en esta
secci贸n.
add a note
User Contributed Notes
Depuraci贸n en PHP
online _ use _ only == hotmail.com
15-Mar-2006 03: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).
joe_fitchnospam at hotmail dot com
17-Dec-2002 12: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.
22-Aug-2002 11: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).
bob at bobbydigital dot fsnet dot co dot uk
27-Oct-2000 05: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 01: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";
cbarnett at crossbeam dot com
07-Jul-2000 08: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; }
}
=====================================================================
| |
| | Citas célebres | Uno no puede juzgar la ópera Lohengrin, de Wagner, habiendola oído sólo vez, y yo no tengo la menor intención de escucharla una segunda vez. Gioacchino Antonio Rossini Compositor de ópera italiano (1792-1868) | | Citas en tu mail | | ©Contenidos Gratis |
| Chiste de... Animales | | Cocodrilos | - ¡Oiga! ¡haga el favor de bajarse del árbol y ayudarme con este cocodrilo asesino!
- No hombre, ¿y entonces quién daría la noticia? | | Chistes en tu mail | | ©ContenidosGratis |
| Inicio | Acción | Estrategia | Palabras | Puzzles | Solitarios | Foro Trucos |  | Cake Mania Jugadores: 6835 Categoría del juego: Acción Objetivo del juego: Ayuda a Jill a recuperar la pasteler韆 de su abuela llevando su propia pasteler韆; consigue clientes y gana dinero. |
|  | Rainbow Web Jugadores: 2199 Categoría del juego: Puzzles Objetivo del juego: Rompe un pegajoso hechizo y salva un reino de fantas韆 en Rainbow Web. Tendr醩 toneladas de diversi髇 mientras juegas a este m醙ico desaf韔 para la mente. |
|  | Mahjongg Fortuna Jugadores: 12462 Categoría del juego: Solitarios Objetivo del juego: Velocidad y habilidad mental son las armas más importantes en esta versión de un antiguo juego asiático. Despeja el tablero lo antes posible haciendo clic en las fichas iguales y gánate la fama eterna de la puntuación más alta. |
|  | Chainz 2 Jugadores: 6955 Categoría del juego: Puzzles Objetivo del juego: Entra en el mundo de las combinaciones con Chainz 2: Relinked, emocionante secuela del exitazo del a駉 pasado, Chainz. Gira eslabones y crea combinaciones de 3 m醩. |
|  | Delicious Jugadores: 4405 Categoría del juego: Acción Objetivo del juego: 縀res un as de la multitarea? 縌uieres que tus clientes est閚 contentos? ues Delicious es tu juego! Sacia el apetito de los clientes y tenlos contentos; o te arriesgues! |
|  | Bookworm Jugadores: 4568 Categoría del juego: Palabras Objetivo del juego: Junta las letras para formar palabras. ¡Las palabras más largas valen más puntos! |
|  | Zuma Jugadores: 4976 Categoría del juego: Acción Objetivo del juego: Controla el 韉olo de la rana de piedra de los antiguos Zuma en este intrigante enigma de acci髇. ispara bolas para formar conjuntos de tres, pero si dejas que lleguen a la calavera dorada morir醩! |
|  | Jewel of Atlantis Jugadores: 3798 Categoría del juego: Puzzles Objetivo del juego: Descubre la ciudad hundida de la Atl醤tida y busca valiosos tesoros. Viaja m醩 all de las profundidades del mar y vive trepidantes aventuras en Jewel of Atlantis. |
|  | Jewel Quest Jugadores: 3727 Categoría del juego: Puzzles Objetivo del juego: Convierte la arena de la antigua selva en oro tan r醦ido como puedas juntando grupos de 3 elementos. os grupos m醩 grandes valen m醩 puntos! |
|  | Bejeweled 2 Jugadores: 3659 Categoría del juego: Puzzles Objetivo del juego: Con cuatro modos de juego 鷑icos y fascinantes, nuevas piezas de juego explosivas e imponentes fondos planetarios, Bejeweled 2 es mucho m醩 adictivo que nunca. |
|
|