Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » remote xdebug
remote xdebug [message #50629] Wed, 12 September 2007 06:17 Go to next message
bazzoola is currently offline bazzoolaFriend
Messages: 1
Registered: July 2009
Junior Member
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 11:17 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
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!
>
Previous Topic:Xdebug Opens Second Browser Window
Next Topic:code assist for internal classes
Goto Forum:
  


Current Time: Thu Dec 26 23:43:51 GMT 2024

Powered by FUDForum. Page generated in 0.02347 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top