gwomacks / php-debug

Atom Text Editor package for PHP debugging
MIT License
119 stars 31 forks source link

Add wildcard breakpoint setting that triggers ALL exceptions/errors #312

Closed Nikita240 closed 6 years ago

Nikita240 commented 6 years ago

Currently, there is no way to trigger a breakpoint on custom php Exceptions. You can't even trigger on predefined Exceptions such as ErrorException.

I think it would be a nice feature to allow us to add custom Exception Breakpoints in the settings. That way we could watch for certain custom Exceptions.

In the meanwhile, I added a wildcard * exception breakpoint that people can use.

Here is it's dbgp output: breakpoint_set -i 18 -t "exception" -x "*".

Here is what it looks like: image

cchamplin commented 6 years ago

LGTM. Thanks.