The Tool Desk
Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →To debug PHP in Sublime Text 3, install and enable Xdebug for the PHP runtime running your code, install the Sublime Text Xdebug Client package, and make sure both use the same DBGp connection port. For Xdebug 3, enable step debugging with xdebug.mode=debug; its default client port is 9003. Remote projects also need server-to-local path mapping.
How Xdebug and Sublime Text work together
Xdebug runs as a PHP extension; Sublime Text’s Xdebug Client package acts as the debugging client. When a session starts, Xdebug connects to the client using DBGp, allowing you to pause execution, step through code, and inspect data. As the Xdebug step-debugging documentation puts it, “Xdebug’s step debugger allows you to interactively walk through your code to debug control flow and examine data structures.”
Both sides must be configured for the same session. Installing the Sublime package alone does not install or enable Xdebug in PHP.
Set up Xdebug and Sublime Text 3
-
Identify the PHP runtime and its configuration
First determine whether you are debugging command-line PHP or a web request handled by PHP-FPM or a web-server module. These runtimes can load different PHP configuration files. For CLI PHP, run
php --inito see the loaded configuration file and scanned INI files. For web PHP, check the configuration information for the web-server runtime, then edit the INI file that process actually uses. Xdebug’s installation guide covers installation in different PHP environments.Recommended: PC Feels Slow? A Free Scan Shows What's Dragging Windows Down →Recommended: Crashes or Glitches? A Free Driver Scan Usually Finds the Culprit →Recommended: Fix Windows Errors and Clear Junk Files in Minutes - Free Scan →Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
-
Install a build compatible with your PHP version
Choose an Xdebug version that supports the PHP version used by the target runtime. The Xdebug compatibility table lists supported combinations. The official installation guide describes options that include a suitable distribution package, PIE, or a source installation; the right method depends on your operating system and PHP setup. The installation page reported Xdebug 3.5.3 as the latest release on October 5, 2026, but that does not mean it supports every older PHP version.
-
Enable step debugging in the active INI file
In the configuration used by the PHP process you intend to debug, enable Xdebug’s debug mode:
Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
xdebug.mode=debugMake sure Xdebug itself is loaded by that runtime as well. If you change configuration for a web server or PHP-FPM process, apply the change using the appropriate service restart or reload for that environment.
-
Install the Sublime Text client
In Sublime Text, open the command palette, choose Package Control: Install Package, and select
Xdebug Client. The package’s repository also documents installation and client settings. Avoid installing both SublimeTextXdebug and SublimeXdebug: the package documentation warns that they may compete by listening on the same port and using similar key mappings.What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.Rank #3
SaleAnker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
-
Match the client port and start a session
Xdebug 3 uses client port 9003 by default. Configure the Sublime client to listen on the port Xdebug will contact; unless you have deliberately changed it, use 9003. Start listening in Sublime before triggering the PHP request or command.
The Sublime package can use a configured URL to start or stop a session with
XDEBUG_SESSION_STARTorXDEBUG_SESSION_STOP. If you have not configured a URL, the client can still listen, but you must trigger Xdebug separately. For CLI debugging, the package also documents use ofXDEBUG_CONFIG; follow its current instructions for the command and environment in your setup.Rank #4
SaleUGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
-
Map paths for remote PHP
When PHP runs remotely—for example, on another host or in a container—the file path reported by the server may not match the path on your computer. Configure the package’s
path_mappingwith the server path as the key and the corresponding local project path as the value. Correct mapping lets Sublime resolve incoming file locations to local files and apply breakpoints.
Use current Xdebug 3 settings, not the package’s legacy example
The Sublime package page includes an older PHP configuration example using settings such as xdebug.remote_enable, xdebug.remote_host, and xdebug.remote_port, with port 9000. Treat that as legacy guidance, not as a template for a current Xdebug 3 setup. For Xdebug 3, use its current step-debugging configuration, including xdebug.mode=debug, and match the client to the default port 9003 unless you have explicitly configured a different port. The current settings are documented in the Xdebug step-debugging guide and Xdebug settings reference.
Free tools Windows power users keep installed
One-click scans. No signup required.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Troubleshoot a session that will not start
Xdebug does not load
- Confirm that the installed Xdebug build supports the PHP version used by the process.
- Check that the active INI configuration contains the correct extension-loading directive.
- Use
php --inifor CLI PHP, or inspect the loaded and scanned configuration files for the relevant web runtime. Do not assume a CLI configuration change also affects PHP-FPM or a web server.
A web request runs without stopping at breakpoints
- Verify that Xdebug is enabled in the web server’s PHP runtime and that the active configuration sets
xdebug.mode=debug. - Confirm that Sublime is listening before the request begins.
- Check that the request sends a session trigger, such as the configured URL behavior in the package. If no URL is configured, start the session through another supported trigger.
The client cannot connect
- Make sure Sublime’s Xdebug Client is listening and that the PHP process can reach the configured client host and port.
- Check that both sides use the same port. Xdebug 3 defaults to 9003; the package’s legacy example uses 9000 and does not represent the current default.
- For remote PHP, check network reachability from the PHP environment to the machine running Sublime.
The session connects but files or breakpoints do not resolve
Review path_mapping. Its keys should be paths as seen by the server, and its values should be the corresponding paths on your local machine. Check that the mapping matches the project directory actually used by the running PHP process.
Opcache or JIT affects behavior
Xdebug can load with Opcache, but the two are not fully compatible in every case. Xdebug recommends loading after Opcache for better compatibility. Xdebug does not work with PHP’s JIT engine; if Xdebug is loaded while JIT is enabled, PHP emits a warning and disables JIT. See the compatibility notes before changing these settings.
Check the runtime again when versions change
Xdebug’s supported PHP versions and available releases change over time, as can package availability and client defaults. Recheck the official compatibility table, installation guide, and Sublime package listing when upgrading or setting up a different environment. The appropriate configuration always depends on the PHP runtime that executes the code you are debugging.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errors

