DUMP ProcBug
Produce
l'output con l'ordine dello stack delle chiamate delle procedure Visual
Basic.
Sintassi
Object.Dump
Return
String
Esempio:
Il seguente codice
esegue un output nella finestra di debug del Visual Basic con
elencate le chiamate aperte sulle procedure VB da Load_Form a sub2
Dim pStack As
ProcStac
Private Sub Form_Load() Set pStack = New ProcStac With pStack .Enabled = True .LogOnFile =
False Call .Init(App.EXEName, App.Major,
App.Minor, _ App.Revision, App.Path, [Exe
Standard]) End
With Call
pStack.EnterProc("Form1", "Form_Load")
sub1 Call
pStack.ExitProc("Form1", "Form_Load") End Sub
Private Sub sub1() Call
pStack.EnterProc("Form1", "sub1")
sub2 Call
pStack.ExitProc("Form1", "sub1") End Sub
Private Sub sub2() Call
pStack.EnterProc("Form1", "sub2")
Debug.Print pStack.Dump Call pStack.ExitProc("Form1",
"sub2") End
Sub
Clicca qui per guardare l'output prodotto da questo
codice.
|