• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Xdebug in Laravel is not working with VSCode

phplaravelxdebugvscode-debugger


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
        },

Related Snippets

Use same method for inertia response and json response Laravel Jetstream

How to send parameters in soap request in php in __soapcall() function

Xdebug 3 not showing in phpinfo on m1 Monterey

stay with the last 15 elements of an array [duplicate]

Laravel phpunit test failing authorization

Merge key and value of array index [duplicate]

How to get the total hour from starting time to end time in php

Loading data from MySQL and populating dropdown select with jQuery Mobile, PHP

Laravel whole batch is cancelled if one Job fails

Yii2: How to download backup files using spanjeta/yii2-backup?

Check if a string contain multiple specific words

Woocommerce redirect after add-to-cart error

PHP sort array of objects by two properties

The difference when using if statement true === something() vs something() === true [duplicate]

How to get company posts from LinkedIn via API?

About Contact Privacy policy Terms and conditions