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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With