1 Attachment(s)
VB.Net - View a running .NET application's trace messages
In the .NET framework you can emit tracing messages from an application by using the Trace class e.g.:
VB Code:
Trace.WriteLine("This is a test message")
When you add a trace listener to your application using the .config file these trace messages can be written to a file etc. However, if you don't have any trace listener attached then the messages are sent using OutputDebugString.
You can catch these output messages using a debugger - as implemented in (very simplified) code attached.
Demonstrates:
* ReadProcessMemory
* DebugActiveProcess
* WaitForDebugEvent
* ContinueDebugEvent