Advertisement
7_2009-2012 Windows API Call/ Explanation #225586

Debug.Print...from an Exe

Everyone knows how useful Debug.Print can be when debugging a program in the run time environment...but why not make these debug comments available from an executable. Simply replace Debug.Print with the following, and then when your application is running as an executable you can use a debugger (such as DBMON.EXE, downloadable form MSDN) to see the debug comments as they occur:

AI

Resumo por IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Código fonte
original-source
Private Sub DebugNote(ByVal DebugString As String)
If IsDebuggerPresent Then
 Call OutputDebugString(DebugString)
End If
End Sub
Comentários originais (3)
Recuperado do Wayback Machine