In order to solve another problem, I want to manually provide certain configuration options for the Run Debug
configuration.
In PhpStorm, at
Settings > PHP > Debug > Settings
there is a flag for
Pass require configuration options through command line (still need to enable debug extension manually)
For troubleshooting purposes, I disabled that flag, yet I don't see where to add my custom configuration options instead.
How to add custom configuration options?
I want to provide custom values for the flags:
dxdebug.mode
dxdebug.client_port
dxdebug.client_hos
How to?
These config options are read through the php.ini within your WSL instance.
Add this in your relevant php.ini
or 20-xdebug.ini
, e.g.: /etc/php/8.3/cli/conf.d/20-xdebug.ini
:
zend_extension=xdebug.so
xdebug.client_host=xdebug://gateway
xdebug.mode=debug
xdebug.client_port=9003