Is it possible to pass parameters to php itself, not just the script in a Run/Debug Configuration?

For example, I'd love to be able to profile a script run:

/usr/bin/php -d xdebug.profiler_enable=On  /path/to/my/script.php

I thought that I could set that up using the Script parameters text box, but that only gave me the following:

/usr/bin/php /path/to/my/script.php -d xdebug.profiler_enable=On

which sends the profiling parameters to my script itself, not to php.  Is there an existing way to do this, or should I enter a feature request on youtrack?


Comment actions Permalink

Hi Daniel,

Currently it is not possible. I think this is the right ticket to watch:

On another hand -- you may try to do this via "Settings | External Tools" functionality (although I have not tried this myself).

Comment actions Permalink

Thanks, Andriy; that ticket does seem to touch upon the issue I'm interested in.

Comment actions Permalink


Fixed in 3.0 -

Thank you for feedback!


Please sign in to leave a comment.