[lazarus] Debug class
Michael Van Canneyt
michael.vancanneyt at wisa.be
Tue Jul 6 03:20:05 EDT 1999
On Mon, 5 Jul 1999, Michael A. Hess wrote:
> Shane Miller wrote:
> >
> > I'll take it and include it with Lazarus for now.
>
> It really should be included as part of the FCL. I just wrote it this
> weekend so I didn't get around to sending to mvc to see about including
> it. MVC your on this list shouldn't this be in the basic FCL stuff?
It is debatable. In my opinion, one of the first enhancements you should make
is that it should be able to open a window with a memo, and display the text
in that, together with a copy in a file.
Then it should be part of lazarus...
So I think you should do the following:
TDebug; <- Your current implementation (enhanced maybe)
TGUIDebug; <- Enhancement to display in a window as well.
(additional Property WindowVisible and methods
ShowWindow, HideWindow. Window should have buttons
'Hide','Debug off')
The TDebug can go in the FCL, TGUIdebug should go in Lazarus.
If you agree on this, then the TDebug can go in FCL, TGUIDebug can go in
Lazarus.
The only problem with this Debug object (in my eyes) is that it makes
your program bigger and slower. {$ifdef}ed code simply isn't there if
you don't want it. Also, the Assert() construct of Delphi is implemented
in the compiler since a long time, why not use that one as well?
What do you think about the above enhancements?
Michael.
More information about the Lazarus
mailing list