Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 22:13 Go to next message
Hertzel Armengol is currently offline Hertzel ArmengolFriend
Messages: 19
Registered: July 2009
Junior Member
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 22:31 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
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] Sat, 13 September 2008 00:20 Go to previous messageGo to next message
Shawn Clark is currently offline Shawn ClarkFriend
Messages: 70
Registered: July 2009
Member
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 16:14 Go to previous messageGo to next message
Hertzel Armengol is currently offline Hertzel ArmengolFriend
Messages: 19
Registered: July 2009
Junior Member
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 21:32 Go to previous message
Hertzel Armengol is currently offline Hertzel ArmengolFriend
Messages: 19
Registered: July 2009
Junior Member
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: Sun Jan 29 14:02:07 GMT 2023

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

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

Back to the top