user40991
user40991

Reputation: 173

Laravel line by line debugging

am a newbie in laravel. When working out with samples most of the error shows message in a page called container.php. inorder to debug, using an extension that shows debugbar.would like to know is it possible to do line by line debugging in laravel and identify exact error of the code written in any way? Using visual studio code editor.

Upvotes: 1

Views: 1627

Answers (4)

user40991
user40991

Reputation: 173

enter image description here Made an error on Provider folder file by appending '1' to the class filename on code., As the error is now on Provider file, it was expected to show that file in the stack trace. Please see the screenshot attached where the error file is not shown, only laravel builtinfiles.

Upvotes: 0

Matteus Barbosa
Matteus Barbosa

Reputation: 2735

You can go through the entire sorted call stack and all details as arguments provided, function names, through the error page displayed. That error page is everything a programmer needs to understand what went wrong with the request and you will get used to it as soon as you fix an issue for the first time. Below I give some tips

enter image description here

Upvotes: 1

Mudit Gulgulia
Mudit Gulgulia

Reputation: 1266

You can use laravel-debugbar package

Laravel-DebugBar

this will show all the SQL query you are running all the route and all the errors just like Chrome Developer Console

Upvotes: 1

Mustafa Poya
Mustafa Poya

Reputation: 3027

Laravel has its own debugging system. you can use built in dd() function, And there are several packages that can be used to debug Laravel projects. Here are some links and hope that it will be helpful for you.

  1. 02-04-2014-package-laravel-debugbar
  2. barryvdh/laravel-debugbar

Upvotes: 1

Related Questions