[xdebug-general] xdebug run troubles

From: Rory McKinley <rorymckinleylists[@]gmail.com>
Date: Wed, 13 Feb 2008 07:29:27 +0200

Hi

I have installed xdebug and I am using it with the vim plugin on my
localhost. It's working great, with the one exception being the debugging. I
can step over, step in or step out. But after the first run command (to
start debugging), run just doesn't work. The debugger will generally stay at
the first line (or if I stepped over a few times, the line where I stopped
stepping over).

I have checked the commands that are being logged as sent by the plugin to
the server, and per the xdebug documentation, they appear to be OK:

0 : recv <===== {{{ <?xml version="1.0" encoding="iso-8859-1"?>
<init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug"
fileuri="file:///data/apache/xxxxxxxx/docroot/home.php" language="PHP"
protocol_version="1.0" appid="7876" idekey="1"><engine
version="2.0.2"><![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>
}}}
1 : send =====> feature_set -i 1 -n max_children -v 32
1 : recv <===== {{{ <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1"
feature="max_children" success="1"></response>
}}}
2 : send =====> feature_set -i 2 -n max_data -v 1024
2 : recv <===== {{{ <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2"
feature="max_data" success="1"></response>
}}}
3 : send =====> feature_set -i 3 -n max_depth -v 1
3 : recv <===== {{{ <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3"
feature="max_depth" success="1"></response>
}}}
4 : send =====> step_into -i 4
4 : recv <===== {{{ <?xml version="1.0" encoding="iso-8859-1"?>

<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="step_into" transaction_id="4"
status="break" reason="ok"><xdebug:message
filename="file:///data/apache/xxxxxx/docroot/home.php"
lineno="9"></xdebug:message></response>
}}}
5 : send =====> breakpoint_set -i 5 -t line -s enabled -f
/data/apache/xxxxxx/docroot/home.php -n 28
5 : recv <===== {{{ <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5"
state="enabled" id="78760001"></response>
}}}
6 : send =====> run -i 6
6 : recv <===== {{{ <?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="
http://xdebug.org/dbgp/xdebug" command="run" transaction_id="6"
status="stopped" reason="ok"></response>
}}}
7 : send =====> run -i 7

Transaction 6 is where the problem comes in - the server says its status is
stopped - can anybody see what the cause of this problem is?

Regards

Rory
Received on Wed Feb 13 2008 - 06:56:33 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST