Hello,
Would it be possible to detect keyword "exit" in procedure body and insert LeaveMethod before it? Sometimes it would be necessary to wrap "exit" with begin end.
best regards
Piotr Rezmer
Subscribe to forum
Forum
SmartInspect Delphi Plugin feature request
Page: 1
| Author | Post |
|---|---|
|
#1 Fri Dec 14, 2007 6:13 pm
|
|
|
Member
Registered: Dec 2007
Posts: 35
Location: Poland
|
|
|
#2 Sat Dec 15, 2007 2:46 pm
|
|
|
Administrator
Registered: Sep 2007
Posts: 133
|
Hello Piotr,
Thanks for the suggestion. This feature is already on our feature request list. I'm not sure if it will be integrated in the first real version of the plugin (the currently available is still beta), but I also think it's quite important. |
|
#3 Mon Dec 17, 2007 9:35 am
|
|
|
Member
Registered: Dec 2007
Posts: 35
Location: Poland
|
Hello, again.
It would be nice to extend information in EnterMethod(). Currently only method name is given. It would be useful to add ClassName() as well, especially when using override for base methods. Otherwise it's not possible to distinguished which method is entered. |
|
#4 Mon Dec 17, 2007 3:25 pm
|
|
|
Administrator
Registered: Sep 2007
Posts: 133
|
Hello Piotr,
This is already possible. You can pass an object to the EnterMethod/LeaveMethod method family. The ClassName of this object is then included in the resulting log message. The Delphi Plugin, for example, uses this functionality in instance methods to pass the 'Self' reference to EnterMethod/LeaveMethod. In static methods, which cannot access the 'Self' reference, the plugin includes the class name as part of the string: SiMain.EnterMethod(Self, 'Method'); // Instance methods |
Page: 1