How to debug a link that does not have a corresponding file?
Hello!
php5.5.22, apache 2.4, PhpStorm 8.0.3, php_xdebug-2.3.1-5.5-vc11-x86_64.dll
Win7 x64, local debugging
i use firefox and google chrome. I have installed XDebug Helper Plugin for Chrome and The Easiest XDebug plugin for Firefox. Also i added boorkmarklets.
The site has one entry script - index.php. If I start debugging main page - mysite.local/index.php, then all is well, debugging is. But If I start debugging for example mysite.local/example.php page (site hasn't file /example.php), then debugging isn't started. Just reboot page. How to debug all url's?
p.s. i dont know much english, so attach russian version.
Здравствуйте!
На моем сайте есть один входной скрипт - index.php. Если я запускаю отладку главной страницы mysite.local/index.php (только так. mysite.local/ например, не запустит отладку), то все нормально. Но если я пытаюсь запустить отладку другой страницы, например, example.php, то отладка не запускается. Просто перезагружается страница и все. Как настроить xdebug или phpstorm, чтобы отладка работала нормально?
请先登录再写评论。
addition: i use firefox and google chrome. I have installed XDebug Helper Plugin for Chrome and The Easiest XDebug plugin for Firefox. Also i added boorkmarklets.
Hi there,
How do you debug in first place? I mean -- where do you put breakpoints? Maybe breakpoints are in the file that not gets executed when request to the non-existent is sent? What's you 404 handler in Apache?
In any case:
That's odd. Always worked like that for me (I never use .php in URLs -- only "nice" (url_rewrite) URLs).
So far it sounds like Apache's config issue. Not 100% sure though.
Спасибо за ответ. Сейчас попробовал снова - все работает. Не знаю - почему. Может действительно по невнимательности не туда точку останова поставил. xdebug.remote_autostart = 1 у меня в php.ini не стоит, но отладка все равно работает.