NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
(Updated) DBG/OS X 10.5 problem?


Joined: 13 Oct 2008
Posts: 1
Reply with quote
Another update and question: I saw a thread where dimitri said that the free version of dbg would not debug encoded files. So to be sure, I have a simple test file, test.php. This doesent work either.

The question: I do have a registered version of phped for windows(this project is on a mac unfortunatly), about a year and a half old. Is there a commercial dbg.so that will run on OSX 10.5(intel) that I can get my hands on with the registered version?

thanks
--------------------------------------------------------------------------------------------------

Update - to simplify things, and take eclipse out of the equation, I am just running the dbg-cli. I compild dnd make install successfully.

I run & setup dbg-cli as follows:

set mode on
set mapurlroot http://mywebserver/
set mapremoteroot /Library/WebServer/Documents/securech/dev/public_html
set maplocalroot /Library/WebServer/Documents/securech/dev/public_html
file /Library/WebServer/Documents/securech/dev/public_html/shopping_cart.php
set port 7869
listen

Waiting for debug session (press Ctrl-C to stop)

Then, I submit url in safari: http://mywebserver/shopping_cart.php?DBGSESSID=1@192.168.1.8:7869

the page displays, nothing happens in dbg-cli.

For a test, I telneted to dbg-cli's listening port to see if it responds: telnet 192.168.1.8 7868, enter some keystrokes, and I can see dbg-cli echo a space to the terminal. So, I know it is at least listening on that port.

So, my initial analysis is that the dbg extension isnt doing anything - I must be missing something or setting up something wrong.
Again, the extension seems to be loaded, based on the phpinfo I posted below.

Anyone have any ideas what I might be doing wrong?

Thanks so much!!

----------------------------------------------------------------
We are trying to get dbg debugging working on OSX 10.5, with eclipse(or anything else that will work).

First let me say that aside from dbg, everything works fine, including the php app were trying to debug. Everything is running on the same OSX 10.5 machine(apache 2.2.8,php 5.26,mysql,eclipse 3.3.2, ect).

We are not running the app as "localhost", we have a "virtualhost" setup in apache as "mywebserver" on a seperate ip on the local machine. This all works.

We compiled the dbg 2.15.5 source successfully, and added the recommended settings in php.ini from the PHPClipse how-to:

[dbg]
register_long_arrays On
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20060613/dbg.so
debugger.enabled = true
debugger.profiler_enabled = true
debugger.JIT_host = clienthost
debugger.JIT_port = 10001

restarted apache, and the result at this point seems good - doing a test via apache in a phptest.php script like: <?php echo phpinfo(); ?> works, and the following info prints out with(I only included this part of the output):

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
with DBG v2.15.5, (C) 2000,2007, by Dmitri Dmitrienko
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies

so far so good. But now, I'm confused as to why this is not working in PHPEclipe on OSX. We followed the How-to, but cant seem to get anywhere.
We set the local and remote paths, which are the same(our project code is in the docroot) "/Library/WebServer/Documents/securech/dev/public_html"
This is also the same path as set in the Documentroot apache virtualhost directive for this host, so there shouldnt be any problem mapping paths.

We set a breakpoint in the shopping_cart.php on the first line of php code, and launching in the browser via eclipse we get:

http://localhost/shopping_cart.php?DBGSESSID=1@clienthost:10001.

I had to manually change the url to: http://mywebserver/shopping_cart.php?DBGSESSID=1@clienthost:10001 because eclipse doesent know the correct hostname(I'm not sure where it gets that info)

that didnt help, meaning the breakpoint wasnt hit, which is the only way I would know if it is working I guess.

If I telnet to 192.168.1.8 10001(this the the ip of the machine), it looks like eclipse is responding with the breakpoint info. I also tried setting the debugger.JIT_host = 192.168.1.8 , and that didnt help either.

So... Is there any way to get a log on the server-side to see what is happening?
Do I need to re-compile the dbg extension with some debugging flags(and if so, how)?

There is nothing relevant in the apache error log. Are there any parameters I can put into php.ini to get the dbg extension to log something once the url is submitted? It looks like the dbg extension is not doing what it needs to , or is confused as to what to do.

Thanks in advance!
Bob Evans
View user's profileFind all posts by kk_mac_1Send private message
(Updated) DBG/OS X 10.5 problem?
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