• 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

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

str_replace or preg_replace random number from string

protect my blog content

How to unlink image from folder?

How to validate tin and cst using PHP?

How To Access A Column In M-M Relationship Table In Laravel

Converting alphabet letter to alphabet position in PHP [duplicate]

How to convert binary string to normal string in php

Respond with status code 401 on authentication failure using Laravel and Passport?

Sum column values from multiple arrays

Get latest Tweets - What API

generating a random code in php?

Xdebug 3 not showing in phpinfo on m1 Monterey

Problem with fetching data from database in Laravel

Reload parent page after submit in iframe

About Contact Privacy policy Terms and conditions