Debugging PHP Applications

David Buchmann (26.Jan.2018 at 09:00, 3 hr 30 min)
Workshop at PHPBenelux Conference 2018 (English - US)

Rating: 4 of 5

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

Who are you?

Claim talk

Talk claims have been moved to the new site.

Please login to the new site to claim your talk

Comments closed.


Rating: 4 of 5

26.Jan.2018 at 17:10 by Richard Haeser (1 comments) via Web2 LIVE

Great tutorial! Maybe do the more theoretical stuff which was at the end now, more in the middle so you stay active.

Rating: 4 of 5

26.Jan.2018 at 18:39 by Jurgen Rutten (41 comments) via Web2 LIVE

Nice tutorial, learned some new things, but not a lot off new stuff for a veteran developer

Rating: 5 of 5

27.Jan.2018 at 12:52 by Svetlozar Stoyanov (2 comments) via Web2 LIVE

Excellent go through different ways and tools to troubleshoot and debug!
Thank you David!

Rating: 4 of 5

27.Jan.2018 at 13:37 by Jeroen de Jong (125 comments) via iPhone app

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.

Speaker comment:

27.Jan.2018 at 14:38 by David Buchmann (134 comments) via Web2 LIVE

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.

Rating: 4 of 5

27.Jan.2018 at 15:37 by Koen Cornelis (41 comments) via Web2 LIVE

Nice demo

Rating: 3 of 5

28.Jan.2018 at 12:28 by Guy Steels (12 comments) via Web2 LIVE

Good tips. good workshop.

© 2019