Install XDebug 3 on PHP and VSCode

Опубликовано: 29 Сентябрь 2024
на канале: Nevyan Neykov
8,371
75

We will setup debugging using xdebug with PHP inside of visual studio code. Initially we will install xdebug using pecl. Then we will additionally setup VSCODE to be able to set breakpoints, next we will use the PHP debug extension to connect to xdebug and set breakpoints in our code. The setup is valid for Ubuntu both on bare-metal as well as under Windows 10 with WSL.
Update: install php-xdebug, then set inside of php.ini :
[xdebug]
xdebug.start_with_request = yes
xdebug.mode = debug
xdebug.discover_client_host = false
then set the port of the vscode php debug extension to 9003.

💖Support on Patreon:
  / nneykov  
----------------------------------------------------------------------------------------------------------------
👥 SUBSCRIBE! ► http://www.youtube.com/subscription_c... ◄
----------------------------------------------------------------------------------------------------------------