Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Xdebug: Cross-platform remote debugging
Xdebug: Cross-platform remote debugging [message #23097] Tue, 22 May 2007 17:12 Go to next message
Jeff Levy is currently offline Jeff LevyFriend
Messages: 7
Registered: July 2009
Junior Member
Good afternoon,

I would like to preface this request for help with a big "thank you thank
you thank you thank you" to Dave Kelsey for his excellent work and
documentation on the Xdebug plugin. Top notch, really.

I have found success using xdebug & eclipse locally on my Linux
workstations, no problems whatsoever. There is a slight snafu however in
my remote debugging. Here's the setup:

I do all my editing on my linux machine, 'snafu', and I've got a Windows
XP vmware slice, 'fubar'.

Fubar runs IIS for various projects my company has. Fubar runs PHP4.

I've configured Fubar to use Xdebug, and from my best guess, it's
operating normally.

Snafu has fubar's wwwroot dir, c:\inetpub\wwwroot\ mounted at: /mnt/fubar/
inetpub

My workspace project "Quarterly TPS Reports" points to, for instance, /
mnt/inetpub/wwwroot/tpsreports

IIS has a virtual directory set up called "reports", which is accessed
thus: http://fubar/reports/

I am having a terribly difficult time trying to figure out how to set up
my launcher for Web Xdebug application. As one might guess, I'm
consistently receiving:

"Source not found for c:\inetpub\wwwroot\phptest\debug.php.{main} :
lineno 7. 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." And I understand why I'm
receiving it. Eclipse can't find c:\inetpub! doh! duh!

I have tried various incarnations of the HTdoc mapper settings, and the
one which seems to work "mostly", is: c:\inetpub\wwwroot\reports.

Debugging under this configuration, my PHPDebugger persp pops up and
voila. I can see my environment, various vars I've set up for testing. $x
= this, and $y = that, etc. But, I get that nasty error, listed above. I
cannot do steps, I can't do much of anything, really. At least, though,
I've been able to establish that I can remotely connect from Snafu to
Fubar.

Can someone assist me in figuring out this whole path miasma?

Thanks!

Summary:

Linux workstation: Snafu
/mnt/fubar/inetpub/wwwroot/
Eclipse Project: "Quarterly TPS Reports"

Windows server: Fubar
IIS root: c:\inetpub\wwwroot\

Reports dir: c:\inetpub\wwwroot\reports

URL: http://fubar/reports/

Error: [see above]
Re: Xdebug: Cross-platform remote debugging [message #23178 is a reply to message #23097] Wed, 23 May 2007 09:31 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
The sample mapper is a very simple mapper. It expects that either your workspace
or a single project replicates the directory structure of your document root.

So for example your document root is c:\inetpub\wwwroot, and this might have
a directory structure underneath it
\phptest
\phptest\others
\reports
\reports\specific

For the sample mapper to work, you either have to have 2 projects called
phptest and reports or a single project which contains these folders.

If you have the 2 project setup, then you specify the htdoc entry as c:\inetpub\wwwroot
and include the project name in the mapping.

If you have a single project setup, then again you specify the htdoc entry as c:\inetpub\wwwroot
but do not include the project name in the mapping.

I am guessing that the latter is closer to the type of configuration that
you have.

I hope this helps.

Dave Kelsey

jlevy wrote:
> Good afternoon,
>
> I would like to preface this request for help with a big "thank you thank
> you thank you thank you" to Dave Kelsey for his excellent work and
> documentation on the Xdebug plugin. Top notch, really.
>
> I have found success using xdebug & eclipse locally on my Linux
> workstations, no problems whatsoever. There is a slight snafu however in
> my remote debugging. Here's the setup:
>
> I do all my editing on my linux machine, 'snafu', and I've got a Windows
> XP vmware slice, 'fubar'.
>
> Fubar runs IIS for various projects my company has. Fubar runs PHP4.
>
> I've configured Fubar to use Xdebug, and from my best guess, it's
> operating normally.
>
> Snafu has fubar's wwwroot dir, c:\inetpub\wwwroot\ mounted at: /mnt/fubar/
> inetpub
>
> My workspace project "Quarterly TPS Reports" points to, for instance, /
> mnt/inetpub/wwwroot/tpsreports
>
> IIS has a virtual directory set up called "reports", which is accessed
> thus: http://fubar/reports/
>
> I am having a terribly difficult time trying to figure out how to set up
> my launcher for Web Xdebug application. As one might guess, I'm
> consistently receiving:
>
> "Source not found for c:\inetpub\wwwroot\phptest\debug.php.{main} :
> lineno 7. 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." And I understand why I'm
> receiving it. Eclipse can't find c:\inetpub! doh! duh!
>
> I have tried various incarnations of the HTdoc mapper settings, and the
> one which seems to work "mostly", is: c:\inetpub\wwwroot\reports.
>
> Debugging under this configuration, my PHPDebugger persp pops up and
> voila. I can see my environment, various vars I've set up for testing. $x
> = this, and $y = that, etc. But, I get that nasty error, listed above. I
> cannot do steps, I can't do much of anything, really. At least, though,
> I've been able to establish that I can remotely connect from Snafu to
> Fubar.
>
> Can someone assist me in figuring out this whole path miasma?
>
> Thanks!
>
> Summary:
>
> Linux workstation: Snafu
> /mnt/fubar/inetpub/wwwroot/
> Eclipse Project: "Quarterly TPS Reports"
>
> Windows server: Fubar
> IIS root: c:\inetpub\wwwroot\
>
> Reports dir: c:\inetpub\wwwroot\reports
>
> URL: http://fubar/reports/
>
> Error: [see above]
>
>
Previous Topic:Multiple matching resource when focusing on class/function name
Next Topic:PDT-Simple Question
Goto Forum:
  


Current Time: Tue Apr 23 13:19:53 GMT 2024

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

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

Back to the top