[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] PDT 2.0 + XDebug jit

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