Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Find out who called a .NET method ====== When debugging, it is useful to know who called a method (if it is being called from multiple places) Include these <code> Imports System.Reflection Imports System.Diagnostics </code> Place this code on the beginning of the method being called. <code> Dim st As StackTrace = New StackTrace() Dim sf As StackFrame = st.GetFrame(1) MsgBox("I was called by: " & sf.GetMethod.Name) </code> development/net/who_called.txt Last modified: 2019/10/31 09:04by 127.0.0.1