Xdebug in Laravel is not working with VSCode



PHP Snippet 1:

zend_extension=xdebug.so
xdebug.mode = debug
xdebug.remote_autostart = 1

; This is correct option for xdebug 3!!!
; Don't use xdebug 2 option!!!!
xdebug.client_host = localhost
xdebug.client_port = 9003
xdebug.log = /tmp/xdebug_remote.log
xdebug.log_level = 7
xdebug.start_with_request = yes

PHP Snippet 2:

"version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for Xdebug",
            "type": "php",
            "request": "launch",
            "port": 9003,
            "log": true
        },