0% found this document useful (0 votes)
55 views

PHP Debug Setting in Vs Code Documentary

Uploaded by

thakurrupakshi7
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

PHP Debug Setting in Vs Code Documentary

Uploaded by

thakurrupakshi7
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 37

How to setup php debugging in Visual Studio Code?

Steps are:

1. Install Xampp

2. Download and Install Xdebug using wizard

3. Enter the php exe path in the setting.json in VS code

4. Enter in php.ini

Step 1:

Downloading and Instaling Xampp


Step 2:

Download and Install Xdebug using wizard


Download php_xdebug-3.3.2-8.0-vs16-x86_64.dll
Move the downloaded file to C:\xampp\php\ext, and rename it to php_xdebug.dll
Update C:\xampp\php\php.ini and add the line:

[PHP]

zend_extension=xdebug

[XDebug]

xdebug.mode = debug

xdebug.start_with_request = Yes
C:\Users\sl-win-15\AppData\Roaming\Code\User
Add the lines below into this

"php.debug.executablePath": "C:\\xampp\\php\\php.exe",

"php.validate.executablePath": "C:\\xampp\\php\\php.exe"

}
Install Php Debug
Restart the Apache Webserver
Open the Folder in which php file is there

You might also like