Home » Language IDEs » PHP Development Tools (PDT) » path problem with mod_rewrite, XDebug, PDT, XAMPP and Windows XP
path problem with mod_rewrite, XDebug, PDT, XAMPP and Windows XP [message #494379] |
Fri, 30 October 2009 13:42 |
No real name Messages: 5 Registered: October 2009 |
Junior Member |
|
|
My mod_rewrite turns accounts/create into index.php?folder=accounts&action=create, but pdt ignores it, so when I try to start a PHP Script debug session, I have to type a folder location in the file field and pdt doesn't accept.
When PDT auto generates the URL for the PHP Web Page debug session, I go to http://localhost/myframe/index.php?XDEBUG%5FSESSION%5FSTART= ECLIPSE%5FDBGP&KEY=12569067976875, but myframe is in the frameworks folder, so I get a 404 error.
When I check a breakpoint, uncheck Auto Generate, add frameworks before myframe in URL, set Start Debug from http://localhost/frameworks/myframe/accounts/create in Advanced and click Debug, the debugger doesn't stop at the breakpoint.
[Updated on: Fri, 30 October 2009 14:00] Report message to a moderator
|
|
|
Re: path problem with mod_rewrite, XDebug, PDT, XAMPP and Windows XP [message #494418 is a reply to message #494379] |
Fri, 30 October 2009 14:56 |
Eclipse User |
|
|
|
Originally posted by: dkel50.hotremovemail.com
The problem might be to do with path mapping. In the launch
configuration you need to specify the php file that will be invoked when
the specific URL in the launch configuration is invoked.
so whatever file is really invoked when you specify
http://localhost/frameworks/myframe/accounts/create
should be set to the file that exists in your workspace.
Alternatively try using firefox xdebughelper and Remote Session Initiation.
See http://www.eclipse.org/pdt/documents/XDebugGuideForPDT2.0.pd f
for more info
Dave Kelsey
On 30/10/09 13:42, pedbessa@hotmail.com wrote:
> When I use a PHP Script debug session with mod_rewrite, eclipse asks me
> to start from a file location, but /myframe/accounts/create is a folder
> location and my mod_rewrite turns all folder locations into file
> locations, but my PHP Script debug session doesn't care.
>
> When PDT auto generates the URL for the PHP Web Page debug session, I go
> to
> http://localhost/myframe/index.php?XDEBUG%5FSESSION%5FSTART= ECLIPSE%5FDBGP&KEY=12569067976875,
> but myframe is in the frameworks folder, so I get a 404 error.
>
> When I check a breakpoint, uncheck Auto Generate, add frameworks before
> myframe in URL, set Start Debug from
> http://localhost/frameworks/myframe/accounts/create in Advanced and
> click Debug, the debugger doesn't stop at the breakpoint.
|
|
| | |
Re: path problem with mod_rewrite, XDebug, PDT, XAMPP and Windows XP [message #494514 is a reply to message #494379] |
Sat, 31 October 2009 00:16 |
No real name Messages: 5 Registered: October 2009 |
Junior Member |
|
|
Debugging as PHP Web Page without mod_rewrite is working. Debugging as PHP Web Page with mod_rewrite isn't working. I'm using the following configuration.
php.ini:
zend_extension = "\xampp\php\ext\php_xdebug.dll"
xdebug.idekey=ECLIPSE_XDEBUG
xdebug.profiler_enable=1
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost"
xdebug.remote_mode="req"
xdebug.remote_port=9000
Start ->
Control Panel ->
Firewall ->
Exceptions ->
Add Port ->
Name:
XDebug
Port number:
9000
Window ->
Preferences ->
PHP ->
Debug ->
PHP Debugger:
XDebug
Server:
localhost
PHP Executables:
C:\xampp\php\php-cgi.exe
Debug Configurations ->
MyFrame Web Page ->
Server ->
PHP Server ->
Configure ->
Server ->
Name:
localhost
Enter the URL that points to the document root of this server:
http://localhost/frameworks
Path Mapping ->
(serverpath) http://localhost/frameworks/myframe/index.php
to
(filesystem) C:\xampp\htdocs\frameworks\myframe\index.php
(serverpath) http://localhost/frameworks/myframe/index.php
to
(workspace) /myframe/index.php
File:
/myframe/index.php
URL:
http://localhost/ by the left
frameworks/myframe/index.php by the right
Advanced ->
(checked) Open in Browser
(checked) Debug
.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/?([^/]*)/?([^/]*)$ index.php?folder=$1&action=$2¶ms=$3 [L]
</IfModule>
[Updated on: Fri, 06 November 2009 22:50] Report message to a moderator
|
|
| | |
Goto Forum:
Current Time: Mon Sep 23 21:31:48 GMT 2024
Powered by FUDForum. Page generated in 0.03862 seconds
|