Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » PDT 2.0 + XDebug jit
PDT 2.0 + XDebug jit [message #90914] Sat, 17 January 2009 15:53 Go to next message
Miha Vrhovnik is currently offline Miha VrhovnikFriend
Messages: 9
Registered: July 2009
Junior Member
Hi *,

First of all I have to apologize as this message will probably be full of
mistakes but English is not my mother language. I hope that I won't offend
anyone.

This will probably be a long post because I just spent most of the day
figuring out on how to do JIT debugging using PDT 2.0 and XDebug. Yes it
took me that much time even though I read the XDebug Guide For PDT 2.0
manual located in docs page.

I'll write just the parts I cannot figure out. Because I assume that most
people have/will be having problems with them. The proper configuration of
PDT for JIT Debug.

First of all let me tell you about the development system path
configuration I have.
On the server side the document root is in D:\htmlPrograms\ This is then
mapped to the Y: on the client side. The projects have following directory
structure. <site name>\storage (this dir contains uploaded files), the
other dir is <site name>\site which contains the actual page resources
(php, css, js,....). The browser urls are of the following format:
http://example.com/<project>/site/www. (On the production document root is
set to xxxx/site/www/)

The root directory for project created in PDT is Y:\<site name>\site\.
1st try: Set server path mapping to: remote D:\htmlPrograms\ local
(filesystem path) Y:\
Nada. Source not found for D:/htmlPrograms/<project
name>/site/lib/Zend/Form/Element.php.Zend_Form_Element->__construct :
lineno 214. Please add the file to the project or the projects Include
Path, or structure the files in Project/Include Path to more closely
resemble the layout of the files on the server. WTF are project include
paths?
2nd try: Add additional mapping: remote D:\htmlPrograms\ local (Project
path) /<project name>
Nada. Source not found for D:/htmlPrograms/<project
name>/site/lib/Zend/Form/Element.php.Zend_Form_Element->__construct :
lineno 214. Please add the file to the project or the projects Include
Path, or structure the files in Project/Include Path to more closely
resemble the layout of the files on the server. WTF are project include
paths?
3rd try: Ok, let's do it as suggested set include paths.Add the project to
the Include path leave path mappings as were.
Hm Something is going on. PDT is asking me to select a proper path mapping
source?! Why the hell are you asking me this? I have already given you the
path mappings?! O look it works.
4th try: Remove path mappings and leave include path as is
Hm Something is going on. PDT is asking me to select a proper path mapping
source!

According to what I experienced the general path mapping settings don't do
anything.
The mapping for which PDT asks me at the beginning of the session don't
persist. After restarting PDT and starting the 1st debug session it will
bother me again to select proper path mapping? Shouldn't be better that
this setting would be project specific? I think that xdebug manual should
be fixed so it would mention that include paths must be set.

Regards,
Miha
Re: PDT 2.0 + XDebug jit [message #90929 is a reply to message #90914] Sat, 17 January 2009 16:49 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Hi Miha. As documented in the Xdebug guide for PDT 2.0 section "2.5.3.2 Path Mapping" under the
remote session initiation section it does say that no correlation is made between PDT Servers and
the server that initiated the remote debug session and so no initial path mappings are available.
Any mappings created are for that debug session only and are lost when that debug session
terminates. Which you have found out of course.

Dave Kelsey



Miha Vrhovnik wrote:
> Hi *,
>
> First of all I have to apologize as this message will probably be full
> of mistakes but English is not my mother language. I hope that I won't
> offend anyone.
>
> This will probably be a long post because I just spent most of the day
> figuring out on how to do JIT debugging using PDT 2.0 and XDebug. Yes it
> took me that much time even though I read the XDebug Guide For PDT 2.0
> manual located in docs page.
>
> I'll write just the parts I cannot figure out. Because I assume that
> most people have/will be having problems with them. The proper
> configuration of PDT for JIT Debug.
>
> First of all let me tell you about the development system path
> configuration I have.
> On the server side the document root is in D:\htmlPrograms\ This is then
> mapped to the Y: on the client side. The projects have following
> directory structure. <site name>\storage (this dir contains uploaded
> files), the other dir is <site name>\site which contains the actual page
> resources (php, css, js,....). The browser urls are of the following
> format: http://example.com/<project>/site/www. (On the production
> document root is set to xxxx/site/www/)
>
> The root directory for project created in PDT is Y:\<site name>\site\.
> 1st try: Set server path mapping to: remote D:\htmlPrograms\ local
> (filesystem path) Y:\
> Nada. Source not found for D:/htmlPrograms/<project
> name>/site/lib/Zend/Form/Element.php.Zend_Form_Element->__construct :
> lineno 214. Please add the file to the project or the projects Include
> Path, or structure the files in Project/Include Path to more closely
> resemble the layout of the files on the server. WTF are project include
> paths?
> 2nd try: Add additional mapping: remote D:\htmlPrograms\ local (Project
> path) /<project name>
> Nada. Source not found for D:/htmlPrograms/<project
> name>/site/lib/Zend/Form/Element.php.Zend_Form_Element->__construct :
> lineno 214. Please add the file to the project or the projects Include
> Path, or structure the files in Project/Include Path to more closely
> resemble the layout of the files on the server. WTF are project include
> paths?
> 3rd try: Ok, let's do it as suggested set include paths.Add the project
> to the Include path leave path mappings as were. Hm Something is going
> on. PDT is asking me to select a proper path mapping source?! Why the
> hell are you asking me this? I have already given you the path
> mappings?! O look it works.
> 4th try: Remove path mappings and leave include path as is
> Hm Something is going on. PDT is asking me to select a proper path
> mapping source!
>
> According to what I experienced the general path mapping settings don't
> do anything.
> The mapping for which PDT asks me at the beginning of the session don't
> persist. After restarting PDT and starting the 1st debug session it will
> bother me again to select proper path mapping? Shouldn't be better that
> this setting would be project specific? I think that xdebug manual
> should be fixed so it would mention that include paths must be set.
>
> Regards,
> Miha
>
Previous Topic:Plugins vs Dropin directory
Next Topic:Using Zend debugger across multiple PHP pages
Goto Forum:
  


Current Time: Thu Sep 26 22:27:31 GMT 2024

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

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

Back to the top