Windows XP, Apache 2.0.54, PHP 5.0.4, MySQL 4.1
running on my local machine
I want to migrate to more sophisticated debugging: setting breakpoints,
watching variables, step into/over, etc.
I installed PHPEdit 1.2.3.159 and discovered I have to install a
separate debugger. I downloaded dbg-2.11.32-win32-php5, copied the
file php_dbg.dll.5.0 .3 to c:\php5\ext\php _dbg.dll (I realize I'm
running 5.0.4 but 5.0.3 appears to be the latest dbg dll)
I update my php.ini file by including the following lines:
extension=php_d bg.dll
;;;;;;;;;;;;;;; ;;;;;;
; Debugger Settings ;
;;;;;;;;;;;;;;; ;;;;;;
[debugger]
debugger.enable d=on
debugger.profil er_enabled=on
debugger.hosts_ allow=localhost
debugger.hosts_ deny=ALL
debugger.ports= 7869, 10000/16
I restarted Apache.
I wrote the following script in PHPEdit:
<?php
debugger_on(loc alhost);
echo "hello world";
?>
When I click the "Run script with debugger" button I get:
An internal error has occured with code 0; Check if DBG listner is
launched
I clicked debug->Start Listner (nothing obvious happened).
* I have read all the help with PHPEdit and I cannot find a simple
example. Am I missing the boat completely? Do I browse to the php
file and the debugger "springs" into action? Am I dreaming to think
you can do with PHP what I'm use to using my Borland C++ Builder? Do I
need to start drinking *before* noon?
Many thanks...