Page 1 of 1

Where to Save Bug Report

PostPosted: Mon Jan 15, 2018 8:13 pm
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

Re: Where to Save Bug Report

PostPosted: Mon Jan 15, 2018 8:36 pm
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.

Re: Where to Save Bug Report

PostPosted: Mon Jan 15, 2018 8:53 pm
by indyrhett
Awesome! Very helpful thanks!