• 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

PHPUnit (Phar) Fatal Error Only When Test Fails

Twig - How to check if variable is a number / integer

ConstraintViolationListInterface to Exception in Symfony

Laravel Database Strict Mode

Mysqli multi query error

Laravel + phpunit + github actions = Failed asserting that '1' is identical to 1

Laravel - How to properly generate unique slugs from article titles?

php retrieve specific data onclick from database in a list format

Limit WooCommerce products in cart only from one custom taxonomy

Laravel get user data with profile

Reading input in php from terminal

Make Calculator - When Button clicked the No shows in Textbox.

"Notice: Undefined variable", "Notice: Undefined index", "Warning: Undefined array key", and "Notice: Undefined offset" using PHP

PHP usort() order in case of equality

Component install error: JInstaller: :Install: File does not exist

About Contact Privacy policy Terms and conditions