

In the above launch.json file, there are two configuration settings: Hover to view descriptions of existing attributes. Use IntelliSense to learn about possible attributes.

So, the port number in the launch.json file is set as 9000.įor Xdebug 3, the default port number is changed to 9003. vscode/launch.json file for a non-docker or local environment setup: vscode/launch.json with the required configuration settings auto-loaded. It will show a popup to select the environment.Click on a link to “ create a launch.json file“.icons, now you will also see the “ Debugger” icon. In the left sidebar where you have the folder, extension, search, etc.Install the extension “ PHP Debug” by Felix Becker. Open the phpinfo.php page you created above and check the path to the loaded configuration file: php.ini or xdebug.ini file for Xdebug.Įdit the php.ini or xdebug.ini file (whichever is the configuration file for your Xdebug), and add the following to the file: It will then give you detailed instructions on installing Xdebug based on your system (Mac, Linux, Windows).Click on the “ Analyse my phpinfo() output” button.Paste the phpinfo content in the input box present in the Xdebug installation wizard page.This page helps you find which file to download, and how to configure PHP to get Xdebug running. Go to the Xdebug Installation Wizard Page. Open the file link in a browser, like You would see the detailed PHP Configuration Info installed on your machine.Īlternatively, you can also save the phpinfo content in a file via command lineĪnd, then open the phpinfo.txt file and copy its content.Write the following in it and save the file: You can also follow these steps to get detailed instructions on installing Xdebug based on your system (Mac, Linux, Windows): Xdebug installation instruction is present here:
