Laravel + Xdebug+ Vscode = Awesome local PHP development.

Introduction :

Ref :ddcode.net

Debug API’S :

xdebug cookie
xdebug config setting
  • Open vscode with the project you want to debug and add the breakpoint at the required location.
  • Hit the F5 button or go run -> Start debugging to start the debugger.
  • Hit the API endpoint to debug the code.

Debug Commands / Queue Jobs :

On Linux :

On windows :

  • Open the command you want to debug in vscode and add the breakpoint to the required location.
  • Hit the F5 button to start debugging.
  • On terminal/shell call the command you want to test as you would do normally.
> php artisan testXdebug

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Rohit P. Shirke

Rohit P. Shirke

Tech enthusiastic | Tech Lover | Software Developer