[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: Break points are not breaking

Mansour,

When debugging I have seen this occur when I have not setup my "PHP Web Page" server settings properly within Eclipse Debug Configuration. The 19% is when Eclipse has done everything it can to start a debug session and is waiting to hear back from Xdebug. Eclipse starts the session up but won't actually do anything more until a filepath / line number matches with what the path mappings have for the page settings.

From your notes I don't see you ever going in and checking the PHP server configuration within the Debug Configuration. If you click on the down arrow beside the debug icon you will see a option to open up the Debug Configurations. Within there under "PHP Web Page" check what settings are for your site. Main thing to check is the PHP Server setting within the server tab. If it is set to "Default PHP Web Server" then that is the one for localhost. Use the configure button and make sure the path mapping settings are correct. They have to be absolute paths so the path on server should have something like "home/mansour/public_html/Project" and the path in workspace should just be a selection of that project.

Once that is all setup then you should be able to debug your page. Have it so that it IS breaking at the first line so that you are able to make sure that it is starting a debug session. Once you have that confirmed then you can remove the "break at first line" and setup other breakpoints.

--
Shawn Clark

Mansour wrote:
Ok, I have reinstalled xdebug, and gave up on Zend.
I am using gentoo 64. Now, with xdebug things seems to be better as I can debug a script but not a web page. Here's my configuration. Apache supports user directory, so I have access to /home/mansour/public_html.
In fact I created a workspace for eclipse in /home/mansour/public_html.
So basically, this is my document root. I have created a test project, called Project. And for the PDT:


xdebug is the default debugger at port 9000, Under the executable section, I have only one executable:

path: /usr/lib64/php5/bin/php
debugger: xdebug

URL pointing to doc root for this server: http://localhost/~mansour
Path mapping:
/home/mansour/public_html     --> /
/home/mansour/public_html/Project    --> /Project (in WorkSpace)

When I click "debug as web page" on the index.php which is in the root directory of the project, It shows "http://localhost/~mansour/Project/index.php"; which is the correct URL. However, launching sits there showing that it's at 19% for ever, and waiting for xDebug session.

Further more I can not find any logs or messages, which makes the issue little bit frustrating.

I will appreciate any help to get this resolved.





Mansour wrote:
Michael Spector wrote:
"Mansour" <mansour@xxxxxxx> wrote in message news:gg46pj$444$1@xxxxxxxxxxxxxxxxxxxx
<skipped>
PHP > PHP servers:
url that points to the document root of this server:
http://localhost/~mansour
Path mapping- on the server:  /
This must be a full path on the server, not an URL path. Where is your document root located?
If it's /var/www, for example, the path should be /var/www/your_project.



What do u mean ? I have my project in /home/mansour/public_html as I
don't have write access to /var/www/. Do I need to modify this access ?
Further more, I found that the command php -m is not showing Zend
debugger installed. I have posted already to the zend forum and waiting
for response. I will see how things will go, and then will move from
there, as this has to be fixed before I continue to set it up with eclipse.