Remote Debugging with xdebug - debug session won't start in eclipse [message #60999] |
Wed, 14 November 2007 17:15 |
mike gaÃ?mann Messages: 3 Registered: July 2009 |
Junior Member |
|
|
I have a problem with remote debugging on two linux machines connected
via TCP/IP.
The directory i want to debug at the remote machine is mounted on my
local machine via sshfs.
1) Debugging at the localhost works (console and browser/eclipse)
2) Debugging at the remote machine with debugclient console works, too.
3) But, debugging from eclipse (locally) via Firefox to the remote
machine won't start.
I always get the message described in the XDebugPHPIDEGuide.pdf at page 22:
3.8.1 Launch waiting for debug session.
I have checked the ports via nmap, the URL seems to be correct, because
i get the page output (just without debugging)
I read the manuals at
http://www.xdebug.org/docs/remote
and
http://aspn.activestate.com/ASPN/docs/Komodo/4.2/komodo-doc- debugphp.html#remote_debug_PHP
and
http://www.inkompetent.se/wiki/php/remote_debugging_with_pdt _and_xdebug
carefully, i like to think,
but it still won't work.
Anyone an idea what i can try or is the problem that it is just not
possible to debug via TCP/IP from cologne to frankfurt?
Below a detailed description what i have tried and what worked.
-- Localhost --
Ubuntu 7.04
PHP-5.2.1, Apache2
xdebug-2.0.2
Eclipse PDT (Europa 3.3)
--Shell debugging:
Console 1:
debugclient-0.9.0
Console 2:
export XDEBUG_CONFIG="remote_port=9000 remote_enable=1 idekey=mikgas"
then
php debugMe.php
OUTPUT at Console 1:
-- snip --
Xdebug Simple DBGp client (0.9.0)
Copyright 2002-2004 by Derick Rethans.
- libedit support: enabled
Waiting for debug server to connect.
Connect
<?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
fileuri="file:///var/www/apache2-default/debugMe.php" language="PHP"
protocol_version="1.0" appid="16034" idekey="mikgas"><engine
version="2.0.2-dev"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDATA[Copyright
(c) 2002-2007 by Derick Rethans]]></copyright></init>
-- snip --
Debugging works, i can give commands in the debugclient console and it works
When i do not use the export line (see above) then the php commando just
displays the file and ends.
no debug session will be initiated.
With eclipse it also works when i want to debug the php file as a web page.
I then get in firefox the correct URL with xdebug parameters appended
and i can step through the application in eclipse.
--------------------
-- Remote machine --
Reachable via IP.
Firewall port 9000 is open
Debian Linux with PHP-4.4.4-8+etch4, xdebug-2.0.2
I do the same things as above with the same (expected) behaviour locally
at the remote machine.
shell debugging works, i could not test web debugging due to the console
only access at that machine.
|
|
|
Powered by
FUDForum. Page generated in 0.02946 seconds