Home » Php » laravel – VS Code not stopping at breakpoint with PHP XDebug

laravel – VS Code not stopping at breakpoint with PHP XDebug

Posted by: admin February 25, 2020 Leave a comment


i’m working in Laravel application, i’m trying to use XDEBUG with WAMP Server and Visual Studio code, when i run “Listen for XDEBUG” in VS code it dosen’t stop at break point but the page still in charge it’s like the debug is working but not stopping in breakpoint.

I already have added XDEBUG’s extension in Chrome

Here’s my Lanch.Json :

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 8000
            "name": "Launch currently open script",
            "type": "php",
            "request": "launch",
            "program": "${file}",
            "cwd": "${fileDirname}",
            "port": 9000

And in my php.ini i have this at the end :

xdebug.remote_enable =1
xdebug.profiler_enable =1
xdebug.profiler_enable_trigger =1
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="c:/wamp64/tmp"
How to&Answers: