Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Eclipse Debug as Script fails(Eclipse Debug as Script fails)
Eclipse Debug as Script fails [message #1419754] Tue, 09 September 2014 03:40 Go to next message
Thomas Widlar is currently offline Thomas WidlarFriend
Messages: 9
Registered: December 2009
Location: Wahoo, NE USA
Junior Member
It's been over a year since I used Xdebug to debug PHP with Eclipse and XAMPP on my win7 Gateway NV53 laptop. It ran fine before that, no problems except that sometimes the variables would not show.

I've just written a small new program. When I right-clicked on it and chose Debug As Script, it said it couldn't debug because it couldn't locate php.exe. When I tried a 2nd and 3rd time the Debug As Script option wouldn't appear.

What could have gone wrong with my installation? I added some application software but I haven't made any changes or experienced except some slowdowns for which I ran virus scans?

php.exe is at D:\xampp\php\php.exe and Eclipse has been told that.

How do I find out what went wrong? Is it a work space issue?

Thanks.

Eclipse: 3.4.1
XAMPP: 1.7.3
PHP: 5.3.1
XDebug: 2.1.0
Re: Eclipse Debug as Script fails [message #1438432 is a reply to message #1419754] Mon, 06 October 2014 03:03 Go to previous message
Thomas Widlar is currently offline Thomas WidlarFriend
Messages: 9
Registered: December 2009
Location: Wahoo, NE USA
Junior Member
I still have not solved my problem getting Xdebug to start. Since I installed Eclipse/XAMPP/Xdebug over 3 years ago I upgraded to the current version.

XAMPP 1.8.3
PHP 5.5.15.
[XDebug]
zend_extension = "D:\xampp\php\ext\php_xdebug-2.2.5-5.5-vc11.dll"
xdebug.profiler_enable = On
xdebug.remote_handler = "dbgp"
xdebug.remote_port = 9000
xdebug.remote_host = "localhost"
xdebug.remote_autostart=Off

Using http://wiki.eclipse.org/Debugging_using_XDebug, I was able to create and debug the sample MyProject.

But when I try to Xdebug my program at D:/xampp/htdocs/concurrent/devine/dict/loaddict.php in project "concurrent" ("concurrent" is a symbolic link to "econcurrent/public_html" which functioned fine before I get

1. When I Debug as Web application it executes the program until it gets a PHP error.
2. When I Debug as CLI application, it stops at the first line. Upon hitting F6 (Step over) the green bar flashes off and on quickly but does not move onto the next step.

I can't figure out how to change my eclipse settings to fix this.

The Xdebug log begins --

Log opened at 2014-10-05 22:50:28
I: Connecting to configured address/port: localhost:9000.
I: Connected to client. Smile
-> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///D:/xampp/htdocs/concurrent/devine/dict/loaddict.php" language="PHP" protocol_version="1.0" appid="4544" session="14125494279074" idekey="ECLIPSE_DBGP"><engine version="2.2.5"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2014 by Derick Rethans]]></copyright></init>

and I see later on after the variablles are loaded --

<- step_over -i 13
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="13" status="break" reason="ok"><xdebug:message filename="file:///D:/xampp/htdocs/concurrent/devine/dict/loaddict.php" lineno="4"></xdebug:message></response>

<- stack_get -i 14
-> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="14"><stack where="{main}" level="0" type="file" filename="file:///D:/xampp/htdocs/concurrent/devine/dict/loaddict.php" lineno="4"></stack></response>

[more]

Previous Topic:Dev setup/workflow for Hosted Apps
Next Topic:Debug JSON Web Service
Goto Forum:
  


Current Time: Tue Mar 19 10:41:26 GMT 2024

Powered by FUDForum. Page generated in 0.01394 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top