我正在使用NetBeans + XDebug开发CodeIgniter项目。我无法调试索引页以外的URL。也就是说,在调用默认控制器和index()函数时,XDebug 可以正常工作。 例如:http://www.my_site_name/ 或者,http://www.my_site_name/home/index
它不适用于其他网址,例如: http://www.my_site_name/controller_name/about_us http://www.my_site_name/home/test
这是我的配置: htaccess的
<IfModule mod_headers.c>
Header set X-UA-Compatible "IE=edge,chrome=1"
<FilesMatch "\.(mp4|webm|ogv|woff)$">
Header unset X-UA-Compatible
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /my_site/
#www redirection
RewriteCond %{HTTP_HOST} ^(index\.php|images|css|js|robots\.txt) [NC]
RewriteRule (.*)$ index.php/$1 [L,R=301]
#Removes access to the system folder by users.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
在我的应用程序的配置文件中,我有:
$config['base_url'] = '/LoadExpress/';
$config['index_page'] = "";
$config['uri_protocol'] = "PATH_INFO";
$config['permitted_uri_chars'] = '';
$config['enable_query_strings'] = FALSE;
在php.ini中:
zend_extension = c:\wamp\bin\php\php5.5.12\ext\php_xdebug-2.3.2-5.5-vc11-x86_64.dll
xdebug.remote_handler="dbgp"
xdebug.remote_enable=on
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=0
我一直在尝试使用其他帖子中提到的提示,但我必须遗漏一些东西。任何帮助将不胜感激。