Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug and include path recursion
XDebug and include path recursion [message #27218] Mon, 11 June 2007 22:07 Go to next message
Eclipse UserFriend
Originally posted by: wjbuys.gmail.com

Hi,

For some reason the XDebug extension does not look for source files in
subfolders of folders that are included as Include Paths. I.e. I have
the following folder structure:


C:\cake
- \libs
- dispatcher.php
- \controller
- controller.php

E:\projects\CakeTest
- index.php
- \controllers
- print_controller.php

print_controller.php:
<?php
class PrintController extends Controller
{
var $uses = array();
var $name = "PrintController";

function index()
{
$this->set('result', 'Success!'); //Breakpoint here
}
}

?>

and the following include paths:

C:\cake

Now when I debug the project, it successfully stops at the breakpoint in
print_controller.php fine, however, if I step into Controller::set() in
controller.php it gives me the error message:

Source not found for
C:\cake\libs\controller\controller.php.Controller->set : lineno 517.
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.

However, it steps out of the index() function and back into
dispatcher.php and diplays the source correctly.

That lead me to conclude that subfolders of include paths aren't handled
correctly, so I added them as include paths:

C:\cake\libs
C:\cake\libs\controller

That solution works, but it becomes unwieldy, as there are many other
subfolders.

Can anyone think of another solution? Is this a problem with XDebug? Or
with PDT? Or am I just missing something? Any help would be greatly
appreciated.

Thankyou,

W. Jacob Buys
Re: XDebug and include path recursion [message #28273 is a reply to message #27218] Thu, 14 June 2007 11:36 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Hi Jacob, this is a problem with PDT rather than XDebug as XDebug support
reuses the source lookup mechanism of PDT.

There is a bugzilla open for this already.

Dave Kelsey

Jacob Buys wrote:
> Hi,
>
> For some reason the XDebug extension does not look for source files in
> subfolders of folders that are included as Include Paths. I.e. I have
> the following folder structure:
>
>
> C:\cake
> - \libs
> - dispatcher.php
> - \controller
> - controller.php
>
> E:\projects\CakeTest
> - index.php
> - \controllers
> - print_controller.php
>
> print_controller.php:
> <?php
> class PrintController extends Controller
> {
> var $uses = array();
> var $name = "PrintController";
>
> function index()
> {
> $this->set('result', 'Success!'); //Breakpoint here
> }
> }
>
> ?>
>
> and the following include paths:
>
> C:\cake
>
> Now when I debug the project, it successfully stops at the breakpoint in
> print_controller.php fine, however, if I step into Controller::set() in
> controller.php it gives me the error message:
>
> Source not found for
> C:\cake\libs\controller\controller.php.Controller->set : lineno 517.
> 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.
>
> However, it steps out of the index() function and back into
> dispatcher.php and diplays the source correctly.
>
> That lead me to conclude that subfolders of include paths aren't handled
> correctly, so I added them as include paths:
>
> C:\cake\libs
> C:\cake\libs\controller
>
> That solution works, but it becomes unwieldy, as there are many other
> subfolders.
>
> Can anyone think of another solution? Is this a problem with XDebug? Or
> with PDT? Or am I just missing something? Any help would be greatly
> appreciated.
>
> Thankyou,
>
> W. Jacob Buys
Re: XDebug and include path recursion [message #28421 is a reply to message #28273] Thu, 14 June 2007 18:46 Go to previous message
Eclipse UserFriend
Originally posted by: wjbuys.gmail.com

Thanks, did look through the open tickets at BugZilla, but only for
XDebug, my bad. Can't wait for a fix though...
Previous Topic:nested arrays and xdebug
Next Topic:xdebug and firefox tabs
Goto Forum:
  


Current Time: Tue Jan 14 07:34:26 GMT 2025

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

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

Back to the top