0
  1. Install XAMPP v3.2.4 x64 in c:\xampp and set path to environment variable

XAMPP

environment

  1. Get all text in phpinfo() and download dll file as per https://xdebug.org/wizard and copy in c:\xampp\php\ext and add text zend_extension=path in end of php.ini and check phpinfo() page and xdebug adding to this

Xdebug

  1. Add [XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 in php.ini

php.ini

  1. Install VSCode v1.52.1

VSCode

  1. install Php Debug v1.13.1

PHP debug

  1. Create project in htdocs name of test and create file in to test.php

project

  1. Text in to test.php and set breakpoint in line

  2. Create automatic launch.json for PHP

launch.json

  1. Start debug

  2. Start chrome and url: localhost/test/test.php

But when refresh page breakpoint not working and not stop code.

LazyOne
  • 158,824
  • 45
  • 388
  • 391
aboo
  • 31
  • 5
  • You are using Xdebug v3 .. but still trying to use config params for v2. They will NOT work. Please check https://xdebug.org/docs/upgrade_guide. Similar questions: https://stackoverflow.com/a/65350070/783119 or https://stackoverflow.com/a/65141934/783119 – LazyOne Dec 22 '20 at 11:49

1 Answers1

0

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
aboo
  • 31
  • 5
  • You DO NOT NEED these 2 lines for Xdebug v3: `xdebug.remote_enable = 1` and `xdebug.remote_autostart = 1`. Xdebug 3 will complain about them in your error log when it sees old v2 values. It may happen for every PHP script that it executes so your error log may be flooded with unnecessary entries. – LazyOne Dec 22 '20 at 15:25