phpstormでxdebugを使用してデバッグしたいです。
phpstormの設定で「PHPスクリプトの最初の行で中断する」に
チェックを入れて、ブラウザでhttp://localhost/dcm/public_html/admin
と打つと、index.php:16で停止します。
しかし、Remote file path 'C:\xampp\htdocs\dcm\public_html\index.php
is not mapped to any file path in projectのエラーメッセージがでます。
パスマッピングでファイル/ディレクトリーに対してC:\xampp\htdocs\dcm\public_html\index.phpのサーバ上の絶対パスを/localhost/dcm/public_html/adminと設定しましたが、エラーが消えません。
(補足情報)
試しにfirefoxのアイコンをクリックしたところ、途中でブレークして、
その後ステップ実行するとFatal error: Class 'Controller' not found in C:\xampp\htdocs\dcm\public_html\fuel\app\classes\controller\login.php on line 4のエラーがでます。
どうすればエラーを解決できるのでしょうか?
ご教授ください。
(補足)試しに簡単なプログラムを作成してデバッグしてみたところ、
ブレークポイントに止まってステップ実行もできました。
環境:windows10
xampp(php5.6)
framework fuelphp
phpstorm 2018.2.5
php.ini設定
[xdebug] zend_extension="C:\xampp\php\ext\php_xdebug.dll" xdebug.remote_enable=1 xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.profiler_enable=1 xdebug.remote_autostart = 1 xdebug.idekey="PHPSTORM"
ちなみにhttp://localhost/dcm/public_html/adminとhttp://localhost/dcm/public_html/index.phpでは違う画面が表示されます。
どうも.htaccessが関係しているようですが、初心者のためよくわかりません。
念のため.htaccessも書きます。
<IfModule mod_rewrite.c> # Make sure directory listing is disabled Options +FollowSymLinks -Indexes RewriteEngine on # Remove index.php from URL RewriteCond %{HTTP:X-Requested-With} !^XMLHttpRequest$ RewriteCond %{THE_REQUEST} ^[^/]*/index.php [NC] RewriteRule ^index.php(.*)$ $1 [R=301,NS,L] # Send request via index.php (again, not if its a real file or folder) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # deal with php5-cgi first <IfModule mod_fcgid.c> RewriteRule ^(.*)$ index.php?/$1 [QSA,L] </IfModule> <IfModule !mod_fcgid.c> # for normal Apache installations <IfModule mod_php5.c> RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> # for Apache FGCI installations <IfModule !mod_php5.c> RewriteRule ^(.*)$ index.php?/$1 [QSA,L] </IfModule> </IfModule> </IfModule>

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。