How I installed dbg (server) for php5 Ubuntu 9.10 Karmic 64-bit:
wget http://downloads.sourceforge.net/project/dbg2/dbg/2.15.5/dbg-2.15.5.tar.gz?use_mirror=iweb
tar zxvf dbg-2.15.5.tar.gz
cd dbg-2.15.5/
sudo aptitude install php5-dev
export phpize=`which phpize`
./deferphpize
cd modules/
sudo cp dbg.so /usr/lib/php5/20060613/
sudo vim /etc/php5/apache2/conf.d/dbg.ini
extension=dbg.so
[debugger]
debugger.enabled = true
debugger.profiler_enabled = true
debugger.JIT_host = clienthost
debugger.JIT_port = 9000
debugger.host_allow = 127.0.0.1
debugger.host_deny = ALL
:wq
sudo service apache2 restart
|
How I Installed dbg-cli (client) for php5 on Ubuntu 9.10 Karmic 64-bit:
wget http://downloads.sourceforge.net/project/dbg2/dbg-cli/2.15.5/dbg-cli-2.15.5-src.tar.gz?use_mirror=iweb
tar zxvf dbg-cli-2.15.5-src.tar.gz
cd dbg-cli-2.15.5-src/
sudo aptitude install libreadline-dev
sh ./configure
vim ./dbgbase/DbgSess.cpp ./dbgbase/DbgSpawn.cpp ./dbgbase/ListenerBase.cpp ./dbgbase/dbgbase_globals.cpp ./dbgbase/dbgbase_classes.h ./dbgbase/ParseEval.cpp ./dbgbase/UrlParse.cpp
/* prepend the following three lines to the top of this file and the remaining files */
#include "limits.h"
#include "stdlib.h"
#include "string.h"
:wn
make
sudo make install
which dbg-cli
vim ~/.dbgcli_init
set mode on
set mapurlroot http://mysite.local
set cgiexec /usr/bin/php
set maplocalroot /home/me/workspace/mysite.local/src/webroot
set mapremoteroot /home/me/workspace/mysite.local/src/webroot
set port 9000
:wq
# optional
sudo aptitude install ddd
ddd --debugger /usr/local/bin/dbg-cli
# browse to http://mysite.local/?DBGSESSID=1@clienthost:9000
|
... but i don't think it worked. there were a lot of warnings even though it compiled the binary. i can't get it to listen.
i also can't run the old pre-compiled binary. seems like u'd need an Ubuntu Breezy virtual machine or something--way way old and not maintained.
has anyone gotten dbg-cli working lately?