Click here to Skip to main content
15,947,958 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am developing a windows application, that shows some perfomance issue at the client side.
So, I created a Debug Logger in file using this code after every line of code
C#
#if DEBUG
    LogwithTime("This Process completed");
#endif


But I could not record the log, as the file is not running in the DEBUG mode...
How can I put it in DEBUG mode so that I could get the code between #if DEBUG and #endif to work?

Thanks
Posted
Comments
Richard MacCutchan 19-Feb-14 11:59am    
You need to rebuild the debug version and test with that.
Yesudasan Moses 24-Feb-14 1:27am    
this is exactly what I wanted... Thanks @Richard
Tomas Takac 19-Feb-14 17:05pm    
You should consider using an established logging framework like log4net for example

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900