Hello,
I try to learn how to debug my PHP code using dbg-cli. I can't make it work. Could, you, please, be so kind to help me find out what is the source of my problems?
I run Apache on my 127.0.0.1. I run dgb-cli and do:
$ dbg-cli
DBG php debugger, version 2.13.1, Copyright 2001, 2006, Dmitri Dmitrienko, www.nusphere.com
dbg>set mapurlroot http://127.0.0.1/opole/
dbg>set mapremoteroot /var/www/opole/
dbg>set maplocalroot /var/www/opole/
dbg>set mode on
dbg>file /var/www/opole/nic.php
Reading symbols from /var/www/opole/nic.php...done.
dbg>run
Can not map local FS file "/var/www/opole/nic.php" to any URL. This file must be under "/var/www/opole/" directory Check mapping settings for HTTP mode.
|
I make sure that /var/www/opole/nic.php does exist:
$ ls /var/www/opole/nic.php
/var/www/opole/nic.php
|
/var/www/opole is a symlink, but I believe it doesn't matter at all.
I make sure that URL http://127.0.0.1/opole/nic.php works in the browser... yes, it does.
So - what can I do now?
Aha, my phpinfo() is:
...
dbgDBG php debugger, version 2.13.1, Copyright 2001, 2006, Dmitri Dmitrienko, www.nusphere.com
Version 2.13.1
Linked as a shared library.
Profiler compiled, enabled
Directive Local Value Master Value
debugger.enable_session_cookie On On
debugger.enabled On On
debugger.fail_silently On On
debugger.ignore_nops Off Off
debugger.JIT_enabled Off Off
debugger.JIT_host clienthost clienthost
debugger.JIT_level 3 3
debugger.JIT_port 7869 7869
debugger.profiler_enabled On On
debugger.session_nocache On On
debugger.timeout_seconds 300 300
|
Thanks a lot in advance!