Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » xdebug, vhosts, and server roots
xdebug, vhosts, and server roots [message #35552] Sat, 14 July 2007 19:47 Go to next message
Eclipse UserFriend
Originally posted by: jyamada1.gmail.com

Hi all,

thanks to dave kelsey for great work on the xdebug plugin. i just got it
up and running on a test script and it looks like it will work great!

i'm having a little trouble with configuring everything correctly for my
setup though. i use virtualhost entries for new projects, so very little
is held under the localhost htdocs directory. instead, each project has
its own htdocs directory, and a vhost entry point to it (and setting
DocumentRoot for those urls). A directory structure is below

www
|
\---localhost
| |
| \---htdocs (DocumentRoot for http://localhost)
|
\---example.com
|
\---htdocs (DocumentRoot for http://dev.example.com)


My problem is that I can't get debugging under the dev.example.com
directories to work. I have the server listed under 'PHP Servers'
(although it's not actually an alternate server), but this seems to have
no effect. Most maddeningly, I assume this would work if the 'Server URL'
attribute in the launch config would stay put, but it always reverts back
to http://localhost when i try changing it.

How can i get this to work?

Thanks!

-jason
Re: xdebug, vhosts, and server roots [message #35620 is a reply to message #35552] Sun, 15 July 2007 19:43 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
The preferences allow you to define the default name of the host.
Windows-->Preferences, PHP and debug and change the default server URL.

It not remembering your server URL in the launch is a bug, but it doesn't
look like it affects the generated URL unless you change something that
causes the URL to be regenerated.

Thanks for letting me know about the bug.

Dave Kelsey

Jason Y wrote:
> Hi all,
>
> thanks to dave kelsey for great work on the xdebug plugin. i just got
> it up and running on a test script and it looks like it will work great!
>
> i'm having a little trouble with configuring everything correctly for my
> setup though. i use virtualhost entries for new projects, so very
> little is held under the localhost htdocs directory. instead, each
> project has its own htdocs directory, and a vhost entry point to it (and
> setting DocumentRoot for those urls). A directory structure is below
>
> www
> |
> \---localhost
> | |
> | \---htdocs (DocumentRoot for http://localhost)
> |
> \---example.com
> |
> \---htdocs (DocumentRoot for http://dev.example.com)
>
>
> My problem is that I can't get debugging under the dev.example.com
> directories to work. I have the server listed under 'PHP Servers'
> (although it's not actually an alternate server), but this seems to have
> no effect. Most maddeningly, I assume this would work if the 'Server
> URL' attribute in the launch config would stay put, but it always
> reverts back to http://localhost when i try changing it.
>
> How can i get this to work?
>
> Thanks!
>
> -jason
>
>
Re: xdebug, vhosts, and server roots [message #36587 is a reply to message #35552] Wed, 18 July 2007 12:20 Go to previous message
Jeff Levy is currently offline Jeff LevyFriend
Messages: 7
Registered: July 2009
Junior Member
I have been using Xdebug for some months now, and wow, I just can't get
by without it. Great job, Dave.

Moving past the obligatory kudos, I'd like to ask a question about the
include path in my project.

My project, fooProject, resides in $home/workspace/fooProject. I've set
up an External Folder include directive for my project which points to /
usr/share/php/Zend , the Zend Framework.

I place a breakpoint in one of my controllers, and then do a step debug.
When one of the ZendFramework resources, in this case the Zend_Loader
class is called, I receive an error:

>> Source not found for /usr/share/php/Zend/
Loader.php.Zend_Loader::autoload : lineno 225. Please add the file to the
>> Project or Include Path in project, or structure the files in Project/
>> Include Path to more closely resemble the layout of the files on the
>> server.

I can step over this error, and continue debugging my application. But
I'm wondering, "how do I set this up to 'mor eclosely resemble the layout
of the files on the server' as per the error instructions?"

Any help would be appreciated.

Thanks

On Sat, 14 Jul 2007 19:47:43 +0000, Jason Y wrote:

> Hi all,
>
> thanks to dave kelsey for great work on the xdebug plugin. i just got
> it up and running on a test script and it looks like it will work great!
>
> i'm having a little trouble with configuring everything correctly for my
> setup though. i use virtualhost entries for new projects, so very
> little is held under the localhost htdocs directory. instead, each
> project has its own htdocs directory, and a vhost entry point to it (and
> setting DocumentRoot for those urls). A directory structure is below
>
> www
> |
> \---localhost
> | |
> | \---htdocs (DocumentRoot for http://localhost) |
> \---example.com
> |
> \---htdocs (DocumentRoot for http://dev.example.com)
>
>
> My problem is that I can't get debugging under the dev.example.com
> directories to work. I have the server listed under 'PHP Servers'
> (although it's not actually an alternate server), but this seems to have
> no effect. Most maddeningly, I assume this would work if the 'Server
> URL' attribute in the launch config would stay put, but it always
> reverts back to http://localhost when i try changing it.
>
> How can i get this to work?
>
> Thanks!
>
> -jason
Previous Topic:[OT] Recommended project layout?
Next Topic:Debugger needed to run a script?
Goto Forum:
  


Current Time: Mon Jan 20 07:24:11 GMT 2025

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

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

Back to the top