ide/phpstorm

PhpStorm CodeIgniter debug

C/H 2017. 5. 30. 08:30

The very first reason why a 404 page was shown when browsing the site with PhpStorm, was that I was using PhpStorm's built in web server and not my Apache. And said server doesn't handle mod_rewrite rules (which simplifies URLs) so for sites using CodeIgniter it won't work. And since the scripts aren't directly accesible it's not possible by simply clicking run in PhpStorm. So we have to initiate the debug request from the outside/web browser.
PhpStorm으로 사이트를 탐색할 때 404페이지가 표시되는 이유는 PhpStorm이 Apache가 아닌 내장된 서버로 동작한다. 내장 서버는 mod_rewrite 규칙(URL 단순화)을 처리하지 않으므로 CodeIgniter를 사용하는 사이트에서는 작동하지 않는다. 스크립트를 직접 액세스 할 수 없으므로 PhpStorm에서는 불가능하다. 따라서 외부/웹 브라우저에서 디버그 요청을 해야 한다.

  1. Start Listening for PHP Debug Connections 토글
  2. XDebug cookie 설정


반응형

'ide > phpstorm' 카테고리의 다른 글

Initial support of CodeIgniter Framework for PhpStorm  (0) 2017.04.05
Phpstorm-stubs  (0) 2017.01.13
PhpStorm(IntelliJ) Subversion merge  (0) 2016.07.26
실행 옵션 phpstorm.vmoptions  (0) 2016.04.06
phpStorm Node.js  (0) 2016.02.01