I've read that several times... so does that mean now the only debugger
for PHP4 is the Zend one?
--toby
Chris Lee wrote:
>
> You must be viewing old documentation.
>
> http://php.net/manual/en/debugger.php
>
> clearly states that debugger, ie debugger_on() support is in php3 only, not
> in php4.
>
> Your not out of luck though, you could still use the Zend Debugger, the Zend
> boys seem to be quite eager to improve its current quallity.
>
> http://zend.com/store/products/ide-test-drive.php
>
> --
>
> Chris Lee
> Mediawaveonline.com
>
> em. [EMAIL PROTECTED]
>
> ph. 250.377.1095
> ph. 250.376.2690
> fx. 250.554.1120
>
> "Ricardo D'Aguiar" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi,
> >
> > Problem:
> > I'm trying put to work the debugger in php4.0.4pl1(Red Hat Distribution),
> I
> > change my php.ini file to enable the debugger but when try to use in a
> simple
> > script I get the following error:
> >
> > Fatal error: Call to undefined function: debugger_on() in
> > /var/www/html/php/dbg.php on line 2
> >
> > Questions:
> > 1º Do I need some sort of extension (something like xxx.so) to activate
> the
> > debugger?
> >
> > 2º In php documentation (Chapter: Using the Debugger) says:
> > Set up a TCP listener on that port somewhere (for example
> socket -l -s 1400
> > on UNIX).
> >
> > I don't have that "socket" command in Linux/Unix, what is this?
> > What this means?
> >
> > 3º I need to debug my script what is the best way to do that?
> > (I tried the "Zend IDE Test Drive" but after 30 days is not for free
> and
> > can't put to work the "The DBG PHP Debugger").
> >
> > 4º What is the difference between Zend debugger, Dmitri Dmitrienko PHP
> debugger
> > (seen link below) and the 'internal' PHP debugger?
> >
> > Thanks, (Sorry for the bad english)
> >
> >
> >
> > Additional Information:
> >
> > PHP version: PHP Version 4.0.4pl1- Red Hat distribution
> > O.S. - Red Hat 7.0
> >
> > Compiled options (PHP) extract from phpinfo():
> > './configure' '--prefix=/usr' '--with-config-file-path=/etc'
> '--disable-debug'
> > '--enable-pic' '--enable-shared' '--enable-inline-optimization'
> > '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin'
> '--with-regex=system'
> > '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png'
> '--with-zlib'
> > '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger'
> > '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets'
> > '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp'
> > '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle'
> > '--without-oci8' '--with-xml'
> >
> > Simple Script to test the debugger:
> > <?php
> > debugger_on(localhost);
> >
> > $var = 1;
> >
> > if ($var == 1 ) {
> > echo "VAR is 1";
> > } else {
> > echo "VAR is not 1";
> > }
> > ?>
> >
> > PHP.INI file (Revelant parts):
> > #Extension actived
> > extension=imap.so
> > extension=ldap.so
> > extension=pgsql.so
> >
> > [Debugger]
> > debugger.host = localhost
> > debugger.port = 7869
> > debugger.enabled = true
> >
> > Dmitri Dmitrienko PHP Debugger:
> > http://dd.cron.ru/dbg/
> > +++++++++++++++++++++++++++++++
> > Ricardo D'Aguiar
> > MemoSis - Sistemas Informáticos
> > Portugal
> > +++++++++++++++++++++++++++++++
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]