Note that there are some explanatory texts on larger screens.

plurals
  1. POSo eclipse and xdebug walk into a bar, and then my apache server dies
    primarykey
    data
    text
    <p>I am using windows xp x86, wamp, apache2, php 5.3 x86, eclipse php, and xdebug, running on localhost as both a virtualhost and an https virtualhost</p> <p>eclipse version info<br/> Eclipse for PHP Developers Version: Helios Release Build id: 20100617-1415</p> <p>I had successfully managed, somehow, to setup eclipse and xdebug and all was well.</p> <p>Then I had to make an svn branch of my project, and reconfigure apache with 2 new virtual hosts, and update my windows host files.</p> <p>Now when I launch debug mode in eclipse everything dies.</p> <p>Specifically, If I set no breakpoints the app runs fine, save for the problem I'm trying to debug in the first place.</p> <p>If I set a breakpoint, the app stops at the breakpoint, and eclipse appears to be holding the ball. But now, when I press continue, or step over, or step into, or sneeze, eclipse tells me execution has resumed, but the application continues to hang, and I have to restart apache. </p> <p>I suspect that there is some break in the communication between eclipse and xdebug, because it looks to me like eclipse is sending my continue or step over command, but xdebug is not receiving it.</p> <p>But even if that's the case I don't know what to do about it. Where should I be looking?</p> <p>Update:<br> I have successfully been able to debug using notepad++, its xdebug plugin, and, like a caveman, typing &amp;XDEBUG_SESSION_START=session_name into the url. However, despite my love for npp, its debug plugin is quite buggy...</p> <p>So I noticed an ad on stackoverflow for something called "phpstorm", which professed to be a lightweight yet full featured php ide, with native xdebug support. The demo required a restart to get it to work, and it feels kind of like working on a wobbly draft table, but it managed to debug both my small test app and real app very nicely, which is more than I can say for eclipse at the moment, even though its probably my fault.</p> <p>I probably should have posted this earlier :/ Here is my phpinfo() xdebug section</p> <pre><code>xdebug xdebug support enabled Version 2.1.0 Supported protocols Revision DBGp - Common DeBuGger Protocol $Revision: 1.145 $ Directive Local Value Master Value xdebug.auto_trace Off Off xdebug.collect_assignments Off Off xdebug.collect_includes On On xdebug.collect_params 0 0 xdebug.collect_return Off Off xdebug.collect_vars Off Off xdebug.default_enable On On xdebug.dump.COOKIE no value no value xdebug.dump.ENV no value no value xdebug.dump.FILES no value no value xdebug.dump.GET no value no value xdebug.dump.POST no value no value xdebug.dump.REQUEST no value no value xdebug.dump.SERVER no value no value xdebug.dump.SESSION no value no value xdebug.dump_globals On On xdebug.dump_once On On xdebug.dump_undefined Off Off xdebug.extended_info On On xdebug.file_link_format no value no value xdebug.idekey no value no value xdebug.manual_url http://www.php.net http://www.php.net xdebug.max_nesting_level 100 100 xdebug.overload_var_dump On On xdebug.profiler_aggregate Off Off xdebug.profiler_append Off Off xdebug.profiler_enable Off Off xdebug.profiler_enable_trigger Off Off xdebug.profiler_output_dir C:\xampp\tmp C:\xampp\tmp xdebug.profiler_output_name xdebug_profile.%p xdebug_profile.%p xdebug.remote_autostart Off Off xdebug.remote_connect_back Off Off xdebug.remote_cookie_expire_time 3600 3600 xdebug.remote_enable On On xdebug.remote_handler dbgp dbgp xdebug.remote_host localhost localhost xdebug.remote_log c:\xampp\apache\logs\xdebug.log c:\xampp\apache\logs\xdebug.log xdebug.remote_mode req req xdebug.remote_port 9000 9000 xdebug.scream Off Off xdebug.show_exception_trace Off Off xdebug.show_local_vars Off Off xdebug.show_mem_delta Off Off xdebug.trace_format 0 0 xdebug.trace_options 0 0 xdebug.trace_output_dir C:\xampp\tmp C:\xampp\tmp xdebug.trace_output_name trace.%c trace.%c xdebug.var_displ ay_max_children 128 128 xdebug.var_display_max_data 512 512 xdebug.var_display_max_depth 3 3 </code></pre> <p>Here is an xdebug log file of when I reproduce the problem</p> <blockquote> <pre><code>Log opened at 2011-01-03 08:56:22 -&gt; &lt;init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" fileuri="file:///C:/xampp/htdocs/lab/zf-tutorial/public/index.php" language="PHP" protocol_version="1.0" appid="4404" idekey="ECLIPSE_DBGP"&gt;&lt;engine version="2.1.0"&gt;&lt;![CDATA[Xdebug]]&gt;&lt;/engine&gt;&lt;author&gt;&lt;![CDATA[Derick Rethans]]&gt;&lt;/author&gt;&lt;url&gt;&lt;![CDATA[http://xdebug.org]]&gt;&lt;/url&gt;&lt;copyright&gt;&lt;![CDATA[Copyright (c) 2002-2010 by Derick Rethans]]&gt;&lt;/copyright&gt;&lt;/init&gt; &lt;- feature_set -i 33 -n show_hidden -v 1 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="33" feature="show_hidden" success="1"&gt;&lt;/response&gt; &lt;- feature_set -i 34 -n max_depth -v 3 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="34" feature="max_depth" success="1"&gt;&lt;/response&gt; &lt;- feature_set -i 35 -n max_children -v 31 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="35" feature="max_children" success="1"&gt;&lt;/response&gt; &lt;- feature_get -i 36 -n encoding -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="36" feature_name="encoding" supported="1"&gt;&lt;![CDATA[iso-8859-1]]&gt;&lt;/response&gt; &lt;- feature_get -i 37 -n supports_async -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="feature_get" transaction_id="37" feature_name="supports_async" supported="1"&gt;&lt;![CDATA[0]]&gt;&lt;/response&gt; &lt;- stdout -i 38 -c 1 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stdout" transaction_id="38" success="1"&gt;&lt;/response&gt; &lt;- stderr -i 39 -c 1 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stderr" transaction_id="39" success="0"&gt;&lt;/response&gt; &lt;- breakpoint_set -i 40 -t line -f file:///C:%5Cxampp%5Chtdocs%5Clab%5Czf-tutorial%5Cpublic%5Cindex.php -n 21 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="40" id="44040001"&gt;&lt;/response&gt; &lt;- run -i 41 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="run" transaction_id="41" status="break" reason="ok"&gt;&lt;xdebug:message filename="file:///C:/xampp/htdocs/lab/zf-tutorial/public/index.php" lineno="21"&gt;&lt;/xdebug:message&gt;&lt;/response&gt; &lt;- stack_get -i 42 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="42"&gt;&lt;stack where="{main}" level="0" type="file" filename="file:///C:/xampp/htdocs/lab/zf-tutorial/public/index.php" lineno="21"&gt;&lt;/stack&gt;&lt;/response&gt; &lt;- stack_get -i 43 -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="43"&gt;&lt;stack where="{main}" level="0" type="file" filename="file:///C:/xampp/htdocs/lab/zf-tutorial/public/index.php" lineno="21"&gt;&lt;/stack&gt;&lt;/response&gt; &lt;- eval -i 44 -- JHRoaXMtPmZpZWxkc1snYm9vbF9jb21wbGV0ZSdd -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="44"&gt;&lt;property address="92404284" type="bool"&gt;&lt;![CDATA[-1]]&gt;&lt;/property&gt;&lt;/response&gt; &lt;- eval -i 45 -- JHRoaXMtPnN0YWdlLT5nZXQoJ2Jvb2xfY29tcGxldGUnKQ== -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="45"&gt;&lt;property address="92404284" type="bool"&gt;&lt;![CDATA[-1]]&gt;&lt;/property&gt;&lt;/response&gt; &lt;- eval -i 46 -- JHRoaXMtPmZpZWxkc1snYm9vbF9jb21wbGV0ZSdd -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="46"&gt;&lt;property address="92404284" type="bool"&gt;&lt;![CDATA[-1]]&gt;&lt;/property&gt;&lt;/response&gt; &lt;- eval -i 47 -- JHRoaXMtPnN0YWdlLT5nZXQoJ2Jvb2xfY29tcGxldGUnKQ== -&gt; &lt;response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="eval" transaction_id="47"&gt;&lt;property address="92404284" type="bool"&gt;&lt;![CDATA[-1]]&gt;&lt;/property&gt;&lt;/response&gt; === breakpoint reached, execution pauses. In eclipse I click "step over" &lt;- step_over -i 48 === end of log </code></pre> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload