Click or drag to resize

IBasicNoUIDebugTrace Event

Occurs when the trace output needs to be printed.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
event EventHandler<TextEventArgs> DebugTrace

Value

EventHandlerTextEventArgs
Remarks
The event handler receives an argument of type TextEventArgs.
Property Description
Text This is the debug trace output.

The Text parameter contains the text to be printed. The text is of the form:

C#
*WW_Basic(n) ssss.s ...
where
  • n - is the WinWrap Basic number (WinWrap Basic numbers recycle to 1 if all WinWrap Basics are destroyed.)
  • ssss.s - number of elapsed seconds since WinWrap Basic was created
  • ... - is the remainder of trace text (Each thread shows the call nesting for that thread by indenting this text.)
Running this macro
C#
Sub Main

End Sub
with TraceConstants.Action + TraceConstants.ActionEvent + TraceConstants.Execution tracing generates this trace output
C#
*WW_Basic(1) 0004.8 |\ OnOverrideMenuCommand [Event]
*WW_Basic(1) 0004.8 | | -> cmdId=MacroRun
*WW_Basic(1) 0004.8 | | <- Cancel=False
*WW_Basic(1) 0004.8 |/
*WW_Basic(1) 0004.8 |\ ExecuteMenuCommand
*WW_Basic(1) 0004.8 | | -> cmdId=MacroRun
*WW_Basic(1) 0004.8 | |\ OnMacroBegin [Event]
*WW_Basic(1) 0004.9 | | | -> fileName="?A1"
*WW_Basic(1) 0004.9 | |/
*WW_Basic(1) 0004.9 | |\ OnBegin [Event]
*WW_Basic(1) 0004.9 | |/
*WW_Basic(1) 0004.9 | |\ *Execute
*WW_Basic(1) 0004.9 | | | ** [?A1|Main#  1] Sub Main()
*WW_Basic(1) 0005.0 | | |\ OnChange [Event]
*WW_Basic(1) 0005.0 | | |/
*WW_Basic(1) 0005.0 | | | ** [?A1|Main#  3] End Sub
*WW_Basic(1) 0005.0 | | |\ OnMacroEnd [Event]
*WW_Basic(1) 0005.0 | | | | -> fileName="?A1"
*WW_Basic(1) 0005.0 | | |/
*WW_Basic(1) 0005.1 | | |\ OnEnd [Event]
*WW_Basic(1) 0005.1 | | |/
*WW_Basic(1) 0005.1 | |/
*WW_Basic(1) 0005.1 | | <- Result=True
*WW_Basic(1) 0005.1 |/
*WW_Basic(1) 0005.1 |\ OnChange [Event]
*WW_Basic(1) 0005.1 |/
See Also