Debug infos only for Debug Config

This commit is contained in:
Andreas Rehm
2011-02-19 18:17:40 +01:00
committed by Riley McArdle
parent bfe68ad3eb
commit 611d352103
2 changed files with 4 additions and 2 deletions

View File

@@ -683,7 +683,9 @@ Public Class frmMain
Protected Overloads Overrides Sub WndProc(ByRef m As Message)
Try
'Debug.Print(m.Msg)
#If Config = "Debug" Then
Debug.Print(m.Msg)
#End If
Select Case m.Msg
Case WM_GETTEXT

View File

@@ -215,7 +215,7 @@ Namespace UI
' Main form handle command key events
Protected Overrides Function ProcessCmdKey(ByRef msg As System.Windows.Forms.Message, ByVal keyData As System.Windows.Forms.Keys) As Boolean
#If DEBUG Then
#If Config = "Debug" Then
Debug.Print("key: " & keyData.ToString)
Debug.Print("msg: " & msg.Msg)
Debug.Print("hwnd: " & msg.HWnd.ToString)