Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Laravel framework?

I'm a newbie PHP programmer now casting an eye at frameworks, and among them Laravel sounds appealing to me as a beginner (somehow unfortunately because I've already invested in literature on Zend 2). However, debugging is important to me and from what I could find on the net, Laravel is hard to debug. I currently use Xdebug in Netbeans on native PHP code and wonder whether Laravel can be debugged in the same or a similar way? When I open a new Netbeans project I can select Symfony 2 or Zend 2, but there seems to be indeed no support for other frameworks like Laravel? If not, is there at least an equivalent debugging tool?

like image 679
bromelio Avatar asked May 29 '14 06:05

bromelio


People also ask

How can I debug Laravel?

The Debugbar will start working inmediately if the debug mode is turned on: To do it so, you just need to modify in your config/app. php or . env file the debug_mode to true. If you wish to use the dump methods in the debugbar console, you need to include the alias to your /config/app.

What is app debug in Laravel?

Debugging is a helpful feature for developers to identify the causes of issues. Most of the modern application frameworks provides you the option to enable debug mode including Laravel. It is an good idea to keep enable debug mode in your development environment.


1 Answers

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.

https://github.com/barryvdh/laravel-debugbar

http://laravel.io/forum/02-04-2014-package-laravel-debugbar

Thanks

like image 135
BlackJack Avatar answered Sep 28 '22 21:09

BlackJack