Option to turn off bug report header generation

delphi package - automated exception handling
Post Reply
quad_65
Posts: 3
Joined: Thu Jun 15, 2023 10:05 am

Option to turn off bug report header generation

Post by quad_65 »

Is there an option to turn off bug report header generation completely or partially?
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: Option to turn off bug report header generation

Post by madshi »

What is your goal? What do you want to achieve?

You can remove specific items from the bug report header, which is explained at the bottom of this page:

https://help.madshi.net/HowToUseMadExcept.htm

Not sure if that helps?
quad_65
Posts: 3
Joined: Thu Jun 15, 2023 10:05 am

Re: Option to turn off bug report header generation

Post by quad_65 »

I simply do not want them to be generated, if possible.
I do not want them to be generated first, only to be cleaned up later.
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Re: Option to turn off bug report header generation

Post by madshi »

So you want the bug report to have everything it has now, except for the header? But you want all the callstacks of all the running threads, the disassembly, the list of loaded modules, the list of processes, the callstack memory dump etc?

A key problem here is that madExcept uses the bug report header not only for providing information, but it's also used to identify that a bug report is a bug report. If we remove the header, madExcept might no longer be able to identify a bug report. Which means that e.g. if you double click it, the madExcept Viewer tool will not be able to open/parse it.

Anyway, currently, there's no option to disable the creation of the bug report header. Honestly, in 25 years of madExcept, you're the first person who asks for this feature! :shock: I think the easiest solution is to remove the bug report header by removing all the lines, one by one. Sure, it's wasted a little bit of time and requires you to add a few lines of code to your project, but it's not that big a deal. Creating the bug report header is very light weight in terms of CPU processing time.

If, however, you don't want to get a full bug report, but only the callstack of the crashing thread, that's a whole different situation. There are dedicated functions to do that. E.g. see here:

https://help.madshi.net/madExceptUnit.h ... StackTrace
Post Reply