How to setup Xdebug with Brackets for debugging PHP?

116 Views Asked by At

I have been reading for a few days and tried different things, but in the end, nothing seems to work. I am running Apache, Xdebug 3.0.2, PHP 7.4.3, and Brackets. Running in Ubuntu 20.04.

These are my php.ini files (CLI and Apache2) and xdebug.ini

[xdebug]
zend_extension = /usr/lib/php/20190902/xdebug.so
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

My preferences .json file in Brackets:

"php": {
        "enablePhpTooling": true,
        "memoryLimit": "4095M",
        "validateOnType": "false"
    },

I have installed PHP debugger in Brackets and Xdebug helper as extension in Chrome.

What is wrong with my setup?

0

There are 0 best solutions below