You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,17 +34,17 @@ This extension is a debug adapter between VS Code and [Xdebug](https://xdebug.or
34
34
```ini
35
35
xdebug.mode = debug
36
36
xdebug.start_with_request = yes
37
-
xdebug.client_port = 9000
38
37
```
39
38
40
39
For Xdebug v2.x.x:
41
40
42
41
```ini
43
42
xdebug.remote_enable = 1
44
43
xdebug.remote_autostart = 1
44
+
xdebug.remote_port = 9003
45
45
```
46
46
47
-
There are other ways to tell Xdebug to connect to a remote debugger, like cookies, query parameters or browser extensions. I recommend `remote_autostart` (Xdebug v2)/`start_with_request` (Xdebug v3) because it "just works". There are also a variety of other options, like the port, please see the [Xdebug documentation on remote debugging](https://xdebug.org/docs/remote#starting) for more information. Please note that the default Xdebug port changed between Xdebug v2 to v3 from 9000 to 9003. The extension still defaults to 9000, so make sure your configuration in `launch.json` and `php.ini` match.
47
+
There are other ways to tell Xdebug to connect to a remote debugger, like cookies, query parameters or browser extensions. I recommend `remote_autostart` (Xdebug v2)/`start_with_request` (Xdebug v3) because it "just works". There are also a variety of other options, like the port, please see the [Xdebug documentation on remote debugging](https://xdebug.org/docs/remote#starting) for more information. Please note that the default Xdebug port changed between Xdebug v2 to v3 from 9000 to 9003.
48
48
49
49
4. If you are doing web development, don't forget to restart your webserver to reload the settings.
50
50
@@ -55,7 +55,7 @@ This extension is a debug adapter between VS Code and [Xdebug](https://xdebug.or
55
55
In your project, go to the debugger and hit the little gear icon and choose _PHP_. A new launch configuration will be created for you with three configurations:
56
56
57
57
-**Listen for Xdebug**
58
-
This setting will simply start listening on the specified port (by default 9000) for Xdebug. If you configured Xdebug like recommended above, every time you make a request with a browser to your webserver or launch a CLI script Xdebug will connect and you can stop on breakpoints, exceptions etc.
58
+
This setting will simply start listening on the specified port (by default 9003) for Xdebug. If you configured Xdebug like recommended above, every time you make a request with a browser to your webserver or launch a CLI script Xdebug will connect and you can stop on breakpoints, exceptions etc.
59
59
-**Launch currently open script**
60
60
This setting is an example of CLI debugging. It will launch the currently opened script as a CLI, show all stdout/stderr output in the debug console and end the debug session once the script exits.
61
61
-**Launch Built-in web server**
@@ -67,7 +67,7 @@ More general information on debugging with VS Code can be found on https://code.
67
67
68
68
-`request`: Always `"launch"`
69
69
-`hostname`: The address to bind to when listening for Xdebug (default: all IPv6 connections if available, else all IPv4 connections)
70
-
-`port`: The port on which to listen for Xdebug (default: `9000`)
70
+
-`port`: The port on which to listen for Xdebug (default: `9003`)
71
71
-`stopOnEntry`: Whether to break at the beginning of the script (default: `false`)
72
72
-`pathMappings`: A list of server paths mapping to the local source paths on your machine, see "Remote Host Debugging" below
73
73
-`log`: Whether to log all communication between VS Code and the adapter to the debug console. See _Troubleshooting_ further down.
0 commit comments