| 
| remote xdebug [message #50629] | Wed, 12 September 2007 02:17  |  | 
| Eclipse User  |  |  |  |  | Greetings, 
 Could any give a brief intro no how to get xdebug 2 to work remotely
 properly?
 I just can't get remote xdebug to work properly.
 
 I noticed that xdebug support is now part of PDT. So, I downloaded the
 latest nightly build to test it out without any success.
 
 I do not want to install PHP,Apache,etc. locally I just want to run PDT as
 a client and connect to a remote server.
 
 Using my current configuration:
 My default PHP debugger in preferences is XDebug.
 
 XDebug loads fine on PHP and apache with the following settings:
 xdebug.profiler_enable = 1
 xdebug.profiler_output_dir = /tmp/profiler
 ; xdebug.remote_autostart=On
 xdebug.remote_enable=1
 xdebug.remote_handler=dbgp
 xdebug.remote_mode=req
 xdebug.remote_host=bt
 xdebug.remote_port=9000
 ; xdebug.idekey=mykey
 ; xdebug.remote_log= /tmp/xdebug.log
 
 This is how I setup the debugging:
 1- open index.php for example
 2- right click on the side bar and toggle breakpoints
 3- right click on the file "Debug As" -> "PHP Web Page"
 A- Debugger is XDebug
 B- PHP Server is set correctly cause the autogenerated URL is correct
 C- File / Project is equal to the project.
 
 I hit debug and a browser window opens with the URL plus
 ?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=11895775082542
 
 I watch the incoming connections on port 9000. I noticed that the web
 server is actually connecting but nothing is happening.
 
 Thanks!
 |  |  |  | 
| 
| Re: remote xdebug [message #50714 is a reply to message #50629] | Wed, 12 September 2007 07:17  |  | 
| Eclipse User  |  |  |  |  | Because you are trying to debug where the files being executed on your web server are copies (and thus in a different location) to the ones in
 your PDT workspace means that path mapping is required.
 
 In order for path mapping to work, you need to specify the copy of the script
 in your PDT workspace which gets executed by the URL in order for path mapping
 to be able to work out the mapping. If you just put the project in File / Project
 field then it won't work.
 
 Dave Kelsey
 
 bazzoola wrote:
 > Greetings,
 >
 > Could any give a brief intro no how to get xdebug 2 to work remotely
 > properly?
 > I just can't get remote xdebug to work properly.
 >
 > I noticed that xdebug support is now part of PDT. So, I downloaded the
 > latest nightly build to test it out without any success.
 >
 > I do not want to install PHP,Apache,etc. locally I just want to run PDT
 > as a client and connect to a remote server.
 >
 > Using my current configuration:
 > My default PHP debugger in preferences is XDebug.
 >
 > XDebug loads fine on PHP and apache with the following settings:
 > xdebug.profiler_enable = 1
 > xdebug.profiler_output_dir = /tmp/profiler
 > ; xdebug.remote_autostart=On
 > xdebug.remote_enable=1
 > xdebug.remote_handler=dbgp
 > xdebug.remote_mode=req
 > xdebug.remote_host=bt
 > xdebug.remote_port=9000
 > ; xdebug.idekey=mykey
 > ; xdebug.remote_log= /tmp/xdebug.log
 >
 > This is how I setup the debugging:
 > 1- open index.php for example
 > 2- right click on the side bar and toggle breakpoints
 > 3- right click on the file "Debug As" -> "PHP Web Page"
 > A- Debugger is XDebug
 > B- PHP Server is set correctly cause the autogenerated URL is correct
 > C- File / Project is equal to the project.
 >
 > I hit debug and a browser window opens with the URL plus
 > ?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=11895775082542
 >
 > I watch the incoming connections on port 9000. I noticed that the web
 > server is actually connecting but nothing is happening.
 >
 > Thanks!
 >
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.03036 seconds