I am developing a Windows application that shows some client-side performance issues. So, I created a Debug Logger in a file using this code after each line of C #if DEBUG LogwithTime code ("This process is complete"); #endif
But I could not write the log, because the file does not work in DEBUG mode ... How can I put it in DEBUG mode so that I can get the code between #if DEBUG and #endif to work?
thank
You need to recompile the whole solution in debug mode and send it to the client.
"" Debug Release. , Release, , Debug, . .
#if DEBUG , Debug, Release (.. #if DEBUG).
#if DEBUG
, , . ,
#if INCLUDE_TIME_LOGGING LogwithTime("This Process completed"); #endif
, Release INCLUDE_TIME_LOGGING Project- > Build- > .
INCLUDE_TIME_LOGGING
, , , (, , ). .
, log4net , .
!
DEBUG Debug. .
, DLL , , . dll.
debug dll, dll-.