Here’s a useful tip that I didn’t know - you can use the pseudo-variable $exception in the Watch window to see the exception that’s just been caught.

If you just quickly want to know what exception has been caught, without having to figure out the variable name of the exception in the try catch, you can just type in $exception in the watch window.

Courtesy of Sara Ford.

Comments

blog comments powered by Disqus
Next Post
How to Find Stuff  16 Jul 2009
Prior Post
PhpMyAdmin and the White Screen of Death  12 Jul 2009
Related Posts
Browsers and WSL  31 Mar 2024
Factory methods and functions  05 Mar 2023
Using Constructors  27 Feb 2023
An Inconvenient API  18 Feb 2023
Method Archetypes  11 Sep 2022
A bash puzzle, solved  02 Jul 2022
A bash puzzle  25 Jun 2022
Improve your troubleshooting by aggregating errors  11 Jun 2022
Improve your troubleshooting by wrapping errors  28 May 2022
Keep your promises  14 May 2022
Archives
July 2009
2009