Skip to content

Commit

Permalink
Update debugging.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Apr 29, 2024
1 parent 7f7c01e commit b855d27
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions distribution/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ First, [create a PHP debug remote server configuration](https://www.jetbrains.co
You can now use the debugger!

1. In PHPStorm, open the `Run` menu and click on `Start Listening for PHP Debug Connections`
2. Add the `XDEBUG_SESSION=PHPSTORM` query parameter to the URL of the page you want to debug or use [other available triggers](https://xdebug.org/docs/step_debug#activate_debugger)

Alternatively, you can use [the **Xdebug extension**](https://xdebug.org/docs/step_debug#browser-extensions) for your preferred web browser.
2. Add the `XDEBUG_SESSION=PHPSTORM` query parameter to the URL of the page you want to debug or use [other available triggers](https://xdebug.org/docs/step_debug#activate_debugger).
Alternatively, you can use [the Xdebug extension](https://xdebug.org/docs/step_debug#browser-extensions) for your preferred web browser.

3. On the command line, we might need to tell PHPStorm which [path mapping configuration](https://www.jetbrains.com/help/phpstorm/zero-configuration-debugging-cli.html#configure-path-mappings) should be used, set the value of the PHP_IDE_CONFIG environment variable to `serverName=api`, where `api` is the name of the debug server configured higher.

Expand Down

0 comments on commit b855d27

Please sign in to comment.