Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP Remote Debugging using XDebug
    text
    copied!<p>I've got a lot of questions about how to debug php-files with xdebug and eclipse on a remote server.</p> <p><strong>What I would like to achieve is</strong>: I have a remote server (with WAMPP (appache (Port 8502), php, mysql (Port 8501), etc)) and I would like to debug the php-files with Eclipse PDT from my local PC.</p> <p><strong>I prepared the following things</strong>:</p> <ul> <li>Installed Eclipse PDT (Build id:<br> 20100617-1415) on my local PC</li> <li>Installed and activated xdebug on the remote server (available at (lets say) 111.111.111.111:8502) with the following configuration within the php.ini</li> </ul> <hr> <pre><code>[XDebug] zend_extension = C:\TYPO3_4.4.6\php\ext\php_xdebug-2.1.0-5.3-vc6.dll xdebug.profiler_output_dir = "C:/xampp/tmp/xdebug" xdebug.profiler_output_name = "cachegrind.out.%p" xdebug.profiler_enable = 0 xdebug.profiler_append=0 xdebug.extended_info=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.idekey=ECLIPSE_DBGP xdebug.remote_log="C:\TYPO3_4.4.6\tmp\xdebug\xdebug_remote.log" xdebug.show_exception_trace=0 xdebug.show_local_vars=9 xdebug.show_mem_delta=0 xdebug.trace_format=0 </code></pre> <hr> <ul> <li><p>In Eclipse I added the server in "Window - PHP - PHP Servers" with the URL "http://111.111.111.111:8502" and the Path Mapping - Path on Server: "C:\TYPO3_4.4.6\htdocs" and Path in Workspace: "/debug_test" (I created a PHP Project named "debug_test").</p></li> <li><p>I also changed the PHP - Debug to the following:</p> <ul> <li>PHP-Debugger: XDebug</li> <li>Server: 111.111.111.111</li> <li>PHP Executable None Defined</li> </ul></li> <li><p>Next I added the debug configuration (PHP Web Page):</p> <ul> <li>Server Debugger: XDebug</li> <li>PHP Server: 111.111.111.111</li> <li>File: /debug_test/debug.php</li> <li>Break at first line: off</li> <li>Auto Generate: on</li> </ul></li> <li><p>I created the file debug.php on the Remote Server at C:\TYPO3_4.4.6\htdocs\debug_test\ and within my PHP Project ("debug_test").</p></li> </ul> <p>If I now run "Debug" and choose my Configuration File, the Webpage pops up (in an external browser) with the URL <a href="http://111.111.111.111:8502/debug_test/debug.php?XDEBUG_SESSION_STOP_NO_EXEC=ECLIPSE_DBGP&amp;KEY=129657398681515" rel="nofollow">http://111.111.111.111:8502/debug_test/debug.php?XDEBUG_SESSION_STOP_NO_EXEC=ECLIPSE_DBGP&amp;KEY=129657398681515</a> and the page is (fully) loaded as a normal page, but there is no way to debug it. Even If I switch to the PHP Debug - View and insert any breakpoints or things like this, there is nothing like debugging.</p> <p>How do I get to the point that I can do remote debugging with xdebug and eclipse pdt?</p> <p>Cheers, Cheeesi</p>
 

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