Using PhpStorm, Xdebug, MAMP & .htaccess
Hi,
I'm new to PhpStorm and Xdebug, so please forgive what may be a simple question.
I've been able to get PhpStorm and Xdebug to work, so I can debug my PHP. But I can't seem to get PhpStorm to load my .htaccess file before it starts the debug process. When running the PHP code from the browser (via MAMP) the .htaccess file is called and everything works as expected.
Is there a way that I can get PhpStorm to load the .htaccess file before it starts debugging?
As an aside, I noticed that PhpStorm will debug my PHP even if MAMP isn't running. Perhaps I've configured PhpStorm incorrectly?
Thank in advance,
MSJ
Please sign in to leave a comment.
Hi there,
This makes no sense at all.
.htaccess is used by Apache and not PhpStorm.
Yes, PhpStorm's own built-in simple web server can read few basic settings from .htaccess .. but only few (and definitely nothing complex like mod_rewrite etc)
Screenshots please.
Right now it sounds like you are using PhpStorm's own built-in simple web server (which is used by default when no proper web URL defined).
In any case:
Andriy,
Sorry for the confusion. I was initiating the debug session from whithin PhpStorm via a 'Configuration'. I started from scratch, followed the '5 steps' and got rid of the cofigurations. After that everything was working properly. I added a few debug configurations for some files in my shared libraries and they are working too.
Thanks again,
James