New Filter Exceptions expert in GExperts
2020-07-13 by dummzeuch
2020-07-13 by dummzeuch
[SHOWTOGROUPS=4,20]
I my last GExperts related Для просмотра ссылки Войдиили Зарегистрируйся I wrote about the new “Close Exception Notification” expert which I just had added to GExperts. It was a hack that hooked the Exception Notification dialog.
This spawned a Для просмотра ссылки Войдиили Зарегистрируйся in the international Для просмотра ссылки Войди или Зарегистрируйся and resulted in a rewrite of the expert. It’s now called “Filter Exception” expert and instead of hooking the dialog it directly hooks into the code that shows this dialog. Thus it prevents the dialog from being shown for filtered exceptions.
I have to thank Для просмотра ссылки Войдиили Зарегистрируйся of Для просмотра ссылки Войди или Зарегистрируйся fame for the detective work that lead to to this hooking code.
In that same discussion Для просмотра ссылки Войдиили Зарегистрируйся suggested to add a project scope to the filtering. I have implemented that too.
So now the expert can filter on:
Для просмотра ссылки Войдиили Зарегистрируйся
That means it will no longer annoy me with them while I am debugging GExperts but will still show them for other projects.
The filter details look like this:
Для просмотра ссылки Войдиили Зарегистрируйся
Для просмотра ссылки Войдиили Зарегистрируйся
It’s also possible to add a filter for the current debug session only, which means that it will be deleted automatically once the debug session ends.
Unfortunately hooking of the code is only available for Delphi 2005 and later. Older versions still have got to hook the Exception Notification dialog.
If you want to test this new functionality, you’ll have to Для просмотра ссылки Войдиили Зарегистрируйся. Try it, it’s not rocket science!
[/SHOWTOGROUPS]
I my last GExperts related Для просмотра ссылки Войди
This spawned a Для просмотра ссылки Войди
I have to thank Для просмотра ссылки Войди
In that same discussion Для просмотра ссылки Войди
So now the expert can filter on:
- Project name, which is a regular expression.
- Exception class
- Exception message, which again is a regular expression
Для просмотра ссылки Войди
That means it will no longer annoy me with them while I am debugging GExperts but will still show them for other projects.
The filter details look like this:
Для просмотра ссылки Войди
Для просмотра ссылки Войди
It’s also possible to add a filter for the current debug session only, which means that it will be deleted automatically once the debug session ends.
Unfortunately hooking of the code is only available for Delphi 2005 and later. Older versions still have got to hook the Exception Notification dialog.
If you want to test this new functionality, you’ll have to Для просмотра ссылки Войди
[/SHOWTOGROUPS]