PHP in Visual Studio Code: Setup Debugging

preview_player
Показать описание
This video shows you how to setup PHP debugging in Visual Studio Code.

It is a step by step video, where you will see all the required things you need to do to enable PHP debugging in Visual Studio Code.

At the end of the video, I will show you debugging on a simple PHP code.

If you haven't installed XAMPP yet, watch this video to see how to do it:

To download the required file, go to this page:

Add PHP to Environment Variables: 0:20
Download the DLL file: 3:22
Install PHP debug extension: 4:49
Test debugging: 8:07

Leave your questions and comments below.

Thank you for watching!

-~-~~-~~~-~~-~-
Please watch: "Tutorial - How to Create an Old Film Look Effect in DaVinci Resolve 16"
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

It works ! Follow the steps, and wait for the .vscode foder to be created under the folder of your .php file. Thanks

mfernandez_arg
Автор

si no os funciona, las lineas del minuto 5:30, poner estas:
xdebug.mode = debug
xdebug.start_with_request = yes
xdebug.client_port = 9000

que dice en la descripcion de la extension que son para la version 3

apachete
Автор

I've done as you said.
One problem: project not loading in browser. It keeps on loading.
I missed something?

mehboobfazal
Автор

FYI: I was getting a '"spawn php ENOENT..."' error when I first tried debugging. The solution for me was to add the following to my environment path:
C:\xampp\PHP
Otherwise, great tutorial!

jonathonvought
Автор

Can you please tell me how to do this is in Linux .
It will be a big help. thanx

karandebnath
Автор

i tried it but after executing file on browser debug is not happening.

sureshrajput
Автор

Is .vscode folder created by its own or we need to create?

lavanyan
Автор

Please could you help me, I do all steps in video but xdebug not work in vs code with php

ماجدنبيل-زم
Автор

It seems you're asleep he he he he

alfsamayoa