Skip to content

Commit

Permalink
docs: Add tip how to setup additional hostnames debug (ddev#6436) [sk…
Browse files Browse the repository at this point in the history
…ip ci]

Co-authored-by: Randy Fay <[email protected]>
  • Loading branch information
maks-oleksyuk and rfay authored Jul 30, 2024
1 parent 2a6bf41 commit b9f2cd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/content/users/debugging-profiling/step-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ Click on the local repository path and add `/var/www/html` as the *Absolute path
6. Start debugging by clicking the “debug” button, which will launch a page in your browser:
![PhpStorm debug start](../../images/phpstorm-config-debug-button.png)

!!!tip "If you’re using [additional_hostnames](../extend/additional-hostnames.md)"
If you also want xdebug to trigger when using a URL other than the primary URL (as with `additional_hostnames` or `additional_fqdns`), create a copy of the PhpStorm `server` (Settings->PHP->Servers) with the current settings and change the host and name to the desired ones. This will tell PHP Storm to listen to that hostname with the appropriate mapping.

#### PhpStorm and Command-Line Debugging

If you need to debug command-line PHP processes, especially code that’s outside the docroot, the environment variable `PHP_IDE_CONFIG` is already set inside the web container, so you don’t have to do much more.
Expand Down

0 comments on commit b9f2cd7

Please sign in to comment.