visual studio code - Why not working breakpoint in PHP VSCode?
- Install XAMPP v3.2.4 x64 in
c:\xamppand set path to environment variable
- Get all text in
phpinfo()and download dll file as per https://xdebug.org/wizard and copy inc:\xampp\php\extand add textzend_extension=pathin end ofphp.iniand checkphpinfo()page and xdebug adding to this
- Add
[XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1in php.ini
- Install VSCode v1.52.1
- install Php Debug v1.13.1
- Create project in
htdocsname of test and create file in totest.php
Text in to
test.phpand set breakpoint in lineCreate automatic
launch.jsonfor PHP
Start debug
Start chrome and url:
localhost/test/test.php
But when refresh page breakpoint not working and not stop code.
Answer
Solution:
just just check listen port
[XDebug]
zend_extension=C:\xampp\php\ext\php_xdebug-3.0.1-7.2-vc15-x86_64.dll
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.mode=debug
xdebug.idekey=VSCODE
xdebug.start_with_request=yes
xdebug.client_host=127.0.0.1
xdebug.client_port=9000
Source






