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

2 comments
Comment actions Permalink

Hi there,

Is there a way that I can get PhpStorm to load the .htaccess file before it starts debugging?

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)

As an aside, I noticed that PhpStorm will debug my PHP even if MAMP isn't running. Perhaps I've configured PhpStorm incorrectly?

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:

0
Comment actions Permalink

Andriy,

Is there a way that I can get PhpStorm to load the .htaccess file before it starts debugging?

This makes no sense at all.

.htaccess is used by Apache and not PhpStorm.



  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
0

Please sign in to leave a comment.