Adding custom information to bug report
Adding custom information to bug report
My application keeps a history of user actions , mainly so that it can implement an "Undo" function. This information would be very useful when diagnosing a crash. Is it possible to add custom application data to the bug report that gets emailed back?
Re: Adding custom information to bug report
Sure. See the bottom of this page to see how to *remove* information from the bug report header. In the same way you can also add some:
http://help.madshi.net/HowToUseMadExcept.htm
And if you use "BugReportSections" instead of "BugReportHeader", you can also add full sections (show in a separate tab by the madExcept exception box).
http://help.madshi.net/HowToUseMadExcept.htm
And if you use "BugReportSections" instead of "BugReportHeader", you can also add full sections (show in a separate tab by the madExcept exception box).
Re: Adding custom information to bug report
Thanks, that works very nicely
Re: Adding custom information to bug report
Hm I must miss something, its not adding anything for me to the bugreport.
I tried exceptintf.bugreportheader.add and exceptintf.additionalfields.add, and nothing gets added.
I tried exceptintf.bugreportheader.add and exceptintf.additionalfields.add, and nothing gets added.
Code: Select all
procedure ExceptionHandler(const ExceptIntf: IMEException; var Handled: Boolean);
begin
Handled := False;
ExceptIntf.BugReportHeader.Add('Application',Application.Title);
ExceptIntf.AdditionalFields.Add('Application1',Application.Title);
end;
initialization
RegisterExceptionHandler(ExceptionHandler, stTrySyncCallOnSuccess);
Re: Adding custom information to bug report
Does it work if you use "stDontSync"? The "AdditionalFields" is for SMTP mailing, what you want is "ExceptIntf.BugReportHeader['Application'] := Application.Title;".