NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Can not map local FS file


Joined: 16 Nov 2006
Posts: 2
Reply with quote
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:

Code:

$ 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:
Code:

$ 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:
Code:

...
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!
View user's profileFind all posts by zerroSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
2.13.1 is quite an old version, it has a flaw related to regexp. Try 2.15.1

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
it was because of symlink


Joined: 16 Nov 2006
Posts: 2
Reply with quote
Found out what was the reason of the problem. The directory was a symlink. This was the reason.
View user's profileFind all posts by zerroSend private message
Can not map local FS file
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic