Workshop in English - US at PHPBenelux Conference 2018
View Slides: http://davidbu.ch/slides/2018-01-26-debugging.html
Short URL: https://joind.in/talk/1e8f7 (QR-Code (opens in new window))
Sooner or later, an application will have errors. Some of them will be your fault, or that of a teammate. Others stem from third party libraries you are using. We want to be able to locate the cause of the error as quickly as possible. In this workshop, we will do exercises that will help you debug your applications more efficiently as well as writing them in a way that they get easier to debug.
We will look at the following topics:
- reading stack traces
- how to search through the code base
- writing good exception messages
- development time versus run time exceptions (validate options, e.g. OptionsResolver)
- use logging (monolog channels)
- step by step debugger
- using phpunit to debug
- git bisect
Comments are closed.
Great tutorial! Maybe do the more theoretical stuff which was at the end now, more in the middle so you stay active.
Nice tutorial, learned some new things, but not a lot off new stuff for a veteran developer
Excellent go through different ways and tools to troubleshoot and debug!
Thank you David!
Great tutorial with nice examples to work on. A thing to take another look at is the development environment, there were multiple people who had some issues with it.
Thanks for the kind feedback so far.
I have to admit, i was surprised by the ways the vagrant setup managed to fail. (Not being able to install at all would have been less surprising.) I think next time, I will just tell to have a PHP 7 with web server and MySQL set up, seems like the vagrant box made things harder instead of easier.
Good tips. good workshop.