An important resource during a source code review is an environment to perform debugging, in this article, we will mention the installation and configuration of vscode a development environment widely used these days that has interesting features for debugging. After the installation is complete, we can start Visual Studio at Applications -> Common Applications -> Development -> Visual Studio Code or simply write the name of the program (code) in a terminal and press enter. Once Visual Studio Code is open, we go to the extensions and look for php-debug to install it.
Then we go to the root of the www directory and create a simple php file with the following code: Open a browser and go to http://localhost/info.php and copy the entire output (use Ctrl + a).
To configure vscode we first create a directory, give it the appropriate permissions and then create a .php file with the following code: In Visual Studio code, open the folder with the .php file.