0

I cannot configure correctly Xdebug in Visual Studio Code for a Laravel & Vue project.

I tried with several posts in Internet about it but any works for me. I had a error about when I started with php artisan serve but now is corrected. My php.ini, VSCode configuration...Everything looks like correct:

enter image description here

But when I put several breakpoints never spot in code.

But still when I put some breakpoint

This is my PHP info output

enter image description here

This is my launch.json VSCode file:

enter image description here

And this is my php.ini

enter image description here

8
  • What is your PHP and Xdebug version? Commented Apr 12, 2021 at 19:12
  • Xdebug installed: 3.0.3 in PHP Version: 7.4.15. The recommendation obtained in link Wizard xDebug Commented Apr 13, 2021 at 6:44
  • So you have Xdebug v3. Accordingly to your screenshot you are using Xdebug v2 config parameters that do almost nothing in v3. Go trough v2 to 3 upgrade guide (xdebug.org/docs/upgrade_guide) and update your config accordingly. Or find and follow some Xdebug v3 specific guide. A basic example: stackoverflow.com/a/65141934/783119 Commented Apr 13, 2021 at 8:02
  • @LazyOne I got version 3. Where do you seen v2? I edit my question with php info output. May be is for Debug Build in NO? Commented Apr 13, 2021 at 11:01
  • 1
    "Debug Build: No" means nothing to Xdebug. It's for developers of PHP itself. --enable-debug-pack is for people compiling their own extensions, and also not related to debugging your PHP code. Commented Apr 13, 2021 at 13:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.