E
E
Enma2021-12-21 11:27:19
PHP
Enma, 2021-12-21 11:27:19

How to run xdebug on macOS?

By itself xdebug I installed
61c18f60bfc54597410753.png

PHP delivered with homebrew.

The php.ini has the following settings:

zend_extension="xdebug.so"
  xdebug.mode=debug
  xdebug.log=/tmp/xdebug.log
  xdebug.start_with_request=Yes
  xdebug.client_port=9003
  xdebug.idekey=VSCODE


When I set up the config for debugging in vscode - I run it and it's empty, no answer, no hello. The logs are empty.

Where to look?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shamanov, 2021-12-21
@SilenceOfWinter

xdebug.mode=develop,trace,debug
xdebug.start_with_request="default"
xdebug.client_host="localhost"
xdebug.log="/tmp/xdebug.log"
xdebug.idekey="VSCODE"
well, you need to specify idekey in the ide settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question