View Issue Details

IDProjectCategoryView StatusLast Update
0000509XdebugUncategorizedpublic2010-01-04 19:52
Reportermrzhao Assigned Toderick  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionnot fixable 
Summary0000509: xdebug not working
DescriptionI installed the xdebug 2.1.0beta on remote linux server using compiling method with no errors displayed.
Bluehost support customor php.ini, i added the following content to /home2/username/public_html/php.ini:


and i have deleted the "zend optimizer" extension.

i could see:
 "Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
    with Xdebug v2.1.0beta1, Copyright (c) 2002-2010, by Derick Rethans
 using phpinfo.php function.

but i could not get connected to remote xdebug server using pdt or notepad++ client.

It seemed there was someting wrong with the xdebug.

I could not stop my php script even using the following code:
  echo ("abcd");
  echo ("1234");
but i could get response from xdebug using the following example code:
    function fix_string($a)
        echo "Called @ ".
            " from ".

    $ret = fix_string(array('Derick'));
I run this php file and got:
"Called @ /home2/username/public_html/test.php:15 from {main}"

and my "xdebug.log" file was never created , i could not get any messages from log file.
Additional InformationApache version 2.2.14 (Unix)
PHP version 5.2.11
Operating system Linux
TagsNo tags attached.
Operating SystemLinux
PHP Version5.2.10



2010-01-04 11:01

administrator   ~0001249

Some questions for you:

1. How do you trigger the debugger (IDE, command line ENV var). Tell a little bit more on how you are using the debugger and thinking of starting it please.
2. Please use an absolute path for xdebug.remote_log and try again.
3. What is host "", are you sure your server can connect to port 9000 on that IP, and that there is an IDE listening on port 9000 on host and that no firewall is in the way (try "telnet 9000" from your server.


2010-01-04 13:17

reporter   ~0001250

Thank you very much, Derick.

my client computer: windows xp+PDT(Eclipse version3.5.1)
the content of /home2/username/public_html/debug/test.php file on my remote server:
  <title>xdebug test</title>
echo ("ddddddddddd1");
xdebug_break( );
echo ("ddddddddddd2");

1. In the PDT,i created a new project for the "/home2/username/public_html/debug" folder using
the Remote System Explorer plugin of eclipse. I put the "test.php" in this folder
2. PHP Eclipse-->Run-->Debug Configurations... in the dialog window, I set:
  Server Debugger:XDebug (port:9000)
  PHP Server: Default PHP Web Server(which pointed to my main domain:
  PHP Server path mapping: /home2/daigouyu/public_html/debug <---->D:\debug
  File: /debug/test.php (I want to use this file to test xdebug connection)
  Breakpoint at First Line option was checked.
  Auto Generate was checked.

  PHP Eclipse-->Window-->Preferences settings:
     php debugger: XDebug
     server:default php web server(
     php executable : none defined.

3. I switch eclipse to "PHP DEBUG" Perspective mode, and run the "RUN"--->"DEBUG" command from the
eclipse menu, then eclipse called the firefox automatically , and i could see the URL "" in the
url line. and firefox kept showing "Loading...." for about 65 seconds and showed me "ddddddddddd1ddddddddddd2" in the main page,meanwhile
PDT kept showing "Launching New_configuration: (57%)"
4. I terminated the debug task by clicking the "Terminate" button in the debug window,and i got a new firefox window showing me "DEBUG SESSION ENDED".

I will provide more info soon.


2010-01-04 17:22

reporter   ~0001253

Last edited: 2010-01-04 18:06

Topic: remote debugging using XDEBUG

xdebug.remote_host="" this is ip of my windows xp pc used to connect the xdebug server.

I connected to my remote linux server on SSH(using SSHSecureShellClient software to get connected with linux shell), i tried "telnet 9000",but failed. (I opened the telnet service and changed the listening port from 23 to 9000 for my windows pc) .

I have shut down the windows xp firewall,and i have a router for my lan(i have mapped the WAN ip to LAN ip too,port 80 and port 9000).
I have tried to connect the xdebug server using PDT directly(without the router) but get the same result.

I set:
 xdebug.remote_log="/home2/username/tmp/xdebug.log" in my php.ini file (using absolute path)
but the xdebug.log file was never created there.

If you need my account for testing on,i shall send you.


2010-01-04 19:52

administrator   ~0001254

Xdebug can obviously not connect to your Windows IDE if there is a NAT router in the way—only direct connections are supported. This is networking 101. Your best trick might be to setup an SSH tunnel, but I've no idea on how to do that on Windows.

Issue History

Date Modified Username Field Change
2010-01-04 09:30 mrzhao New Issue
2010-01-04 09:30 mrzhao Operating System => Linux
2010-01-04 09:30 mrzhao PHP Version => 5.2.10
2010-01-04 09:30 mrzhao Xdebug Version => 2.1.0-dev
2010-01-04 11:01 derick Note Added: 0001249
2010-01-04 11:01 derick Status new => feedback
2010-01-04 13:17 mrzhao Note Added: 0001250
2010-01-04 17:22 mrzhao Note Added: 0001253
2010-01-04 17:24 mrzhao Note Edited: 0001253
2010-01-04 17:33 mrzhao Note Edited: 0001253
2010-01-04 17:36 mrzhao Note Edited: 0001253
2010-01-04 17:41 mrzhao Note Edited: 0001253
2010-01-04 17:45 mrzhao Note Edited: 0001253
2010-01-04 18:06 mrzhao Note Edited: 0001253
2010-01-04 19:52 derick Note Added: 0001254
2010-01-04 19:52 derick Status feedback => resolved
2010-01-04 19:52 derick Resolution open => not fixable
2010-01-04 19:52 derick Assigned To => derick
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized