Where to Save Bug Report

delphi package - automated exception handling

Where to Save Bug Report

Postby indyrhett » Mon Jan 15, 2018 8:13 pm

Is there a way to choose where the default bug report is saved to? Right now we just have "MyBugReport.txt" specified as the name and it appears to be saving it by default in a Windows VirtualStore type directory. Is there a way to just have it save in the user's documents folder?

Thanks,

Rhett Price
IndySoft
indyrhett
 
Posts: 3
Joined: Tue Dec 03, 2013 5:19 pm

Re: Where to Save Bug Report

Postby madshi » Mon Jan 15, 2018 8:36 pm

Hi Rhett!

By default it's stored into your own folder if there's no path. You can use the following paths, if you prefer:

%userappdata%\bugReport.mbr
%commonappdata%\bugReport.mbr
%localappdata%\bugReport.mbr
%desktop%\bugReport.mbr

Or you can define the full path at runtime, e.g. in a unit initialization section, by doing this:

Code: Select all
uses ..., madExcept;

initialization
  MESettings().BugReportFile := 'C:\Whatever\bugReport.mbr';
end.


Using the mbr file extension allows association with the madExcept bug report viewer tool, but txt extension is fine, too.
madshi
Site Admin
 
Posts: 9774
Joined: Sun Mar 21, 2004 5:25 pm

Re: Where to Save Bug Report

Postby indyrhett » Mon Jan 15, 2018 8:53 pm

Awesome! Very helpful thanks!
indyrhett
 
Posts: 3
Joined: Tue Dec 03, 2013 5:19 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 2 guests