How to debug my client exe application

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

+3
source share
4 answers

You need to recompile the whole solution in debug mode and send it to the client.

"" Debug Release. , Release, , Debug, . .

+1

#if DEBUG , Debug, Release (.. #if DEBUG).

, , . ,

#if INCLUDE_TIME_LOGGING LogwithTime("This Process completed"); #endif

, Release INCLUDE_TIME_LOGGING Project- > Build- > .

, , , (, , ). .

, log4net , .

!

+3

DEBUG Debug. .

+2

, DLL , , . dll.

debug dll, dll-.

0

All Articles