mad.inc request

delphi package - automated exception handling
Post Reply
sdf
Posts: 12
Joined: Fri Apr 14, 2006 4:32 pm

mad.inc request

Post by sdf »

In mad.inc, please add something like this to the end of the file:

Code: Select all

{$ifdef debug_madexcept}
{$D+},{$L+}
{$endif}
Or, if you prefer, just put the $D- and $L- in some sort of conditional IFNDEF that we can define to make it stop doing it.

The reason is just that it seems to be impossible to turn on debugging info without editing mad.inc, which is annoying. I'd much rather decide debug or not on a per-project level, or at least have a way to override it on a project level.
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I believe doing this would only show any effect if you don't use the precompiled DCUs. So you'd have to add the madExcept sources to your project folder, anyway. Does that make sense to you?
sdf
Posts: 12
Joined: Fri Apr 14, 2006 4:32 pm

Post by sdf »

I always build everything from sources already. :)
madshi
Site Admin
Posts: 10766
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Ah! Ok, I'll add something to the mad.inc file.
Post Reply