[Gambas-user] Introspection/Event forwarding feature request
Bruce
adamnt42 at gmail.com
Sun May 24 01:13:40 CEST 2020
On 24/5/20 3:41 am, Benoît Minisini wrote:
> Le 23/05/2020 à 20:03, Tobias Boege a écrit :
>> On Sat, 23 May 2020, Peter Bauer wrote:
>>> Hello,
>>> I would need a method which gives a reference as a complete name of the
>>> currently used (event handling)Sub. Is there already a way for a
>>> program to
>>> find out in which Sub the code currently runs ?
>>>
>>> e.g. Public Sub Button1_Click()
>>>
>>> Print Me.Subname should give something like:
>>> Button1_Click()
>>>
>>
>> There is System.Backtrace which contains such information, but I don't
>> think
>> that its format has any compatibility guarantees.
>>
>
> Morever, it works only if debugging information is put inside the
> executable.
>
Wouldn't the Debug command by itself provide this, viz
Public Sub Button1_Click()
Debug
End
More information about the User
mailing list