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

Given that eclipse is showing 19% implies to me that xdebug cannot contact your PDT setup or xdebug doesn't load or attempt to initiate a session.

so it would be worth doing the following
1. write a little script that runs phpinfo() and invoke it from your browser. That will tell you if xdebug is loaded on your server and what the settings are (suggest you post it here too along with your php.ini entries for xdebug).


2. generate an xdebug log by adding an entry
xdebug.remote_log=c:\xdebug.log
(replace c:\xdebug.log with something appropriate for your system and operation system).
and post the log.

3. check the ports match 9000 on your server with 9000 on your PDT system and ensure that no firewall is blocking that port.

I think you can probably delete the path mapping entry you have specified, if necessary in your case PDT should work it out automatically.

Dave Kelsey

Mansour wrote:
Shawn,Thank you.

I have tried everything, and nothing seems to be working for me. I understand that the mapping has to be absolute, and that's what I have.

Here's screenshots for my config:

http://img152.imageshack.us/img152/9427/screenshot1en0.png
http://img219.imageshack.us/img219/1281/screenshot2bj5.png

Do you have any advice ?




Shawn Clark wrote:
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