[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: Simple script terminates when I try to debug it.

I am at a bit of a loss for this one at the moment. The log you sent shows that PDT and Xdebug are talking to each other. The script being executed is Z:/Workspace/simpleDebugExample/helloworld.php and a step_into is being done which should initiate execution and stop at the first line, but it isn't stopping and the script ends.

could you try putting a breakpoint on the 2nd and 3rd lines of your script and try running again ? also could you attach the log again. Also can you add a line
echo "started\n";
and
echo "ended\n";
to the top and bottom of the scripts and confirm that these get echoed out to the console.


Which version of php are you using ? that may have some influence. One last thing can you append your php.ini file as well to see if I can spot anything unusual there.

PDT and Xdebug always use tcpip to communicate whether it is a standalone script or running inside a web server so the port issue could matter but this isn't so in your case.

Regards
Dave

Dave Connerth wrote:
Dave,

I have attached the log.

My Debug Configuration is a "PHP Script", not a "PHP Web Page" - so does the port 9000 issue matter? When I exit Eclipse, netstat no longer lists 9000 or 10000 as open, so I would think that is not the problem.

I created a "PHP Web Page" Configuration to see if the debugger would work for a Web configuration. For Web configurations, my installation of Eclipse uses a different PHP executable (the one that is in Apache/bin instead of the one in my PHP directory). When I run the Web configuration, the external browser loads with the script output, but the debugger does not show the current execution line or halt on a breakpoint (but the debug session does not immediately terminate as with the "PHP Script" configuration.

I added phpinfo(), and the XDebug setting are in the phpinfo output(see listing below).

I wonder what else could cause the Debug system to not suspend on a breakpoint?

Thanks,

Dave