Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » Using PDT + Xdebug when a .htaccess rule is being applied
Using PDT + Xdebug when a .htaccess rule is being applied [message #80042] Fri, 12 September 2008 18:13 Go to next message
Eclipse UserFriend
HI I need to debug a page that looks like this

http://localhost/path1/path2/path3

and there's a .htaccess rule like this

RewriteRule ^(.*)$ ./index.php?page=$1 [L]

everything gets passed to index.php for processing, and as I´m using
remote debugging this does not work as Xdebug requires a real file to
start debugging

Any Ideas?
Re: Using PDT + Xdebug when a .htaccess rule is being applied [message #80058 is a reply to message #80042] Fri, 12 September 2008 18:31 Go to previous messageGo to next message
Eclipse UserFriend
I am not sure I understand the problem here.If you specify the file (index.php) as the file
and turn off auto generation of the URL and provide your own URL when you launch the URL, index.php
will execute on the server. xdebug will see this and inform PDT of the real file being executed. PDT
will then attempt to associate that file with the file you specified in the launch (not the URL) to
determine the path mapping between the two, but it should associate the index.php on your remote
server with thst sitting in you local workspace that you specified in the launch.

Is it just a case of you want it to launch a different URL ? if that is the case just turn off auto
generation of the URL and enter what you want it to be.

Dave Kelsey


hertzel wrote:
> HI I need to debug a page that looks like this
>
> http://localhost/path1/path2/path3
>
> and there's a .htaccess rule like this
>
> RewriteRule ^(.*)$ ./index.php?page=$1
> [L]
>
> everything gets passed to index.php for processing, and as I´m using
> remote debugging this does not work as Xdebug requires a real file to
> start debugging
>
> Any Ideas?
Re: Using PDT + Xdebug when a .htaccess rule is being applied [message #80071 is a reply to message #80042] Fri, 12 September 2008 20:20 Go to previous messageGo to next message
Eclipse UserFriend
Make XDebug use index.php as the file to start. The rewrite rule below
looks like the Drupal redirect. Basically it is telling any path to go
to index.php so that is your starting file for any URL of your site.

--
Shawn Clark
Senior Web Applications Developer
Acro Media Inc.

hertzel wrote:
> HI I need to debug a page that looks like this
>
> http://localhost/path1/path2/path3
>
> and there's a .htaccess rule like this
>
> RewriteRule ^(.*)$ ./index.php?page=$1
> [L]
>
> everything gets passed to index.php for processing, and as I´m using
> remote debugging this does not work as Xdebug requires a real file to
> start debugging
>
> Any Ideas?
Re: Using PDT + Xdebug when a .htaccess rule is being applied [message #80333 is a reply to message #80071] Tue, 16 September 2008 12:14 Go to previous messageGo to next message
Eclipse UserFriend
That´s correct it´s a drupal redirect, and I´m using a custom path the
idea is to get there and start debugging right away, but as it´s a
redirection there´s no way for me to get there...

Shawn Clark wrote:
> Make XDebug use index.php as the file to start. The rewrite rule below
> looks like the Drupal redirect. Basically it is telling any path to go
> to index.php so that is your starting file for any URL of your site.
>
> --
> Shawn Clark
> Senior Web Applications Developer
> Acro Media Inc.
>
> hertzel wrote:
>> HI I need to debug a page that looks like this
>>
>> http://localhost/path1/path2/path3
>>
>> and there's a .htaccess rule like this
>>
>> RewriteRule ^(.*)$ ./index.php?page=$1 [L]
>>
>> everything gets passed to index.php for processing, and as I´m using
>> remote debugging this does not work as Xdebug requires a real file to
>> start debugging
>>
>> Any Ideas?

That
Re: Using PDT + Xdebug when a .htaccess rule is being applied [message #80366 is a reply to message #80333] Tue, 16 September 2008 17:32 Go to previous message
Eclipse UserFriend
Actually just setting the breakpoints in my index.php and running my
side in debug mode was enough tnks for the replies

:)

hertzel wrote:
> That´s correct it´s a drupal redirect, and I´m using a custom path the
> idea is to get there and start debugging right away, but as it´s a
> redirection there´s no way for me to get there...
>
> Shawn Clark wrote:
>> Make XDebug use index.php as the file to start. The rewrite rule below
>> looks like the Drupal redirect. Basically it is telling any path to go
>> to index.php so that is your starting file for any URL of your site.
>>
>> --
>> Shawn Clark
>> Senior Web Applications Developer
>> Acro Media Inc.
>>
>> hertzel wrote:
>>> HI I need to debug a page that looks like this
>>>
>>> http://localhost/path1/path2/path3
>>>
>>> and there's a .htaccess rule like this
>>>
>>> RewriteRule ^(.*)$ ./index.php?page=$1 [L]
>>>
>>> everything gets passed to index.php for processing, and as I´m using
>>> remote debugging this does not work as Xdebug requires a real file to
>>> start debugging
>>>
>>> Any Ideas?
>
> That
Previous Topic:Open Method menu button gone?
Next Topic:Zend Debug
Goto Forum:
  


Current Time: Fri Jul 18 14:54:13 EDT 2025

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

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

Back to the top