Last post Nov 15, 2010 01:56 AM by santa_1975
Nov 12, 2010 01:50 PM|ojm37|LINK
I've got some debugging code that looks like this:
If booDebug = True Then
Dim st As New System.Diagnostics.StackTrace(1)
Dim sf As System.Diagnostics.StackFrame = st.GetFrame(0)
Trace.WriteLine("New: " & sf.GetMethod().DeclaringType.FullName.ToString & ": " & _
The purpose of this code is to output the name of the calling method. Now, I would like to output the FILENAME where the calling method resides. Is this information available?
Nov 15, 2010 01:56 AM|santa_1975|LINK
The link below should guide you to get the file name.
Hope this helps.