how to to set xdebug option -dxdebug.client_host globally ?

Hi! ,

I have multiple docker interpreters (different images) which are all running in Windows Linux subsystem (WSL).

To be able to debug I have to set the option -dxdebug.client_host=<my hostname> to each interpreter.

How can I set this option globally so that it's used with each WSL interpreter?

This will help me to avoid having to must set this option for each interpreter. Sometimes it's happened that I forget to set this option and I am wondering why the debugger can not stop on any breakpoints. Configure this option one time for all will help a lot :-)

Thank you!

Cheers,

Pascal

0

I am afraid there is no feature to specify default settings for all PHP CLI Interpreters at the same.

As a sort of workaround, you may create a some kind of a template interpreter with configured options and then use "Duplicate" button to create new ones:

Also, you may try adding the interpreter option in the default "PHP Script" run configuration template, so it will be added automatically to all newly created run configurations:

 

 

0

Hi Vasiliy,

thank you for your answer!

I was thinking about a workaround like (create a template cli-interpreter with default option set) this too :-)

0

请先登录再写评论。