@@ -27,16 +27,21 @@ _The following instructions are for PHPStorm._
27
27
28
28
1 . Click on Run > Edit Configurations
29
29
2 . Click the ` + ` and add a new PHP Remote Debug configuration
30
- 3 . Tick _ Filter debug connection by IDE key_
31
- 4 . Give the configuration a name
32
- 5 . Click the ` ... ` next to Server
33
- 6 . Click the ` + ` to add a new server
34
- 7 . Give the server a name, and set the host to ` 127.0.0.1 `
35
- 8 . Hit Apply and OK until you've returned to the IDE
36
- 9 . Click the _ Start Listening for PHP Debug Connections_ icon
37
- 10 . Set a breakpoint in your code
38
- 11 . Refresh the page in your browser
39
- 12 . Accept _ Incoming Connection From Xdebug_
30
+ 3 . Give the configuration a name
31
+ 4 . Tick _ Filter debug connection by IDE key_
32
+ 5 . Add ` PHPSTORM ` in the session id
33
+ 6 . Click the ` ... ` next to Server
34
+ 7 . Click the ` + ` to add a new server
35
+ 8 . Give the server a name, and set the host to ` 127.0.0.1 `
36
+ 9 . Tick _ Use path mappings_
37
+ 10 . Open the Project files drop down
38
+ 11 . Find the public folder, and under Absolute path on the server add ` /code/public `
39
+ 12 . Hit Apply and OK until you've returned to the IDE
40
+ 13 . Click the _ Start Listening for PHP Debug Connections_ icon
41
+ 14 . Set a breakpoint in your code
42
+ 15 . Refresh the page in your browser
43
+ 16 . Accept _ Incoming Connection From Xdebug_
44
+ 17 . Happy debugging!
40
45
41
46
See https://xdebug.org/docs/remote for how to enable xdebug sessions.
42
47
0 commit comments