How to debug PHP in Visual Studio Code (Simple steps)

preview_player
Показать описание
I set up my debugger today and created this quick video to help you in case you want to debug PHP in Visual Studio Code.

Settings to enter in PHP.ini (from the video)

zend_extension = xdebug

[XDebug]
Рекомендации по теме
Комментарии
Автор

There are many "how to" xdebug setup videos for PHP in VS Code. None of them explained this at all. This is the only video that actually worked. Who knew the settings.json line items had to be manually inserted? Nobody has explained this before. Now I can accelerate my work to a much greater degree. I am very grateful my friend.

DemsAreDemonic
Автор

Thank you for the concise and easy to follow video. Teaching me more than my course!

cyex
Автор

Thank you for the straightforward tutorial, worked like a charm!

juhelius
Автор

Thanks, Jeet.
You seem to have made light of the reality that many cannot do the "step through" the code! You focused on set-up which is very helpful. But what use is set-up when I can't use it!

NedumEze
Автор

Thank you so much. Very helpful for me. Don't meet any problem while installing. Just following your video step by step. Great

quochuynguyen
Автор

On a new VSCode install the debug options for running in browser are not there - it seems some step was missed - you must have some other extension installed or configuration you did not go over.

Also telling people to use search for the settings.json only works if you've ever opened it before
settings.json is stored in
but would be easier to find if you told folks to go to the PHP Debug addon then click on the settings icon then select extension settings then click the "edit in settings.json" to find it

The video was fairly helpful but it's assuming a lot - probably because you already have things installed and configured that you take for granted.

digital_sorceress
Автор

Thanks a bunch for the help! The debug works now 👍

sbastion
Автор

you save me a lot of time, thank you, very clear

chriswha
Автор

thanks bro this was very clear. helped me a lot

asherheed
Автор

thanks for your video it was so helpful for me!

nilscarrillo
Автор

Thanks. I would also like to see a set-up of this on Linux.

cbbcbb
Автор

Thanks Jeet.
A useful and informative video but I am having some problems.
I have installed XAMP and Xdebugger and it seems to work for debugging current open script and I can step through code etc.
However, the option for "Listening for Xdebug" does not seem to be working and the debugger does not start when I load the local Web page on APache?
Can you offer any further help is to what may be wrong?

HaslamIT
Автор

hi, nice video, i had one question, do you had to use composer to create that app ?? i tryiet this on my own proyect but i failed hehe, thanks

jesusalbertocervantes
Автор

Hey Jeet, I followed the steps but the debugger is not getting hit can you help me with the configuration of 'launch.json' too?

mdoghzh
Автор

its not working, it asking me create launch.json file

casasniper
Автор

am not getting setting.json file
please help me

yashwantpanday
Автор

X Debug tried. OMG must have been designed to debug this sole code. It's a joke. Please dont publish useless info

blaircooper
Автор

you are not my best friend stop saying that it is so weird to hear🙄

Sandipansarkar
join shbcf.ru