Where to Save Bug Report

delphi package - automated exception handling
Post Reply
indyrhett
Posts: 6
Joined: Tue Dec 03, 2013 5:19 pm

Where to Save Bug Report

Post by indyrhett »

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
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Where to Save Bug Report

Post by madshi »

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.
indyrhett
Posts: 6
Joined: Tue Dec 03, 2013 5:19 pm

Re: Where to Save Bug Report

Post by indyrhett »

Awesome! Very helpful thanks!
Post Reply