G
Guest
Hello,
I have a question about trace as MSDN seems confuses me.(http://msdn.microsoft.com/library/d...tml/frlrfSystemDiagnosticsTraceClassTopic.asp).
My answer to my question is NO, as it's decided at compile time.
Basically, from what I understand is if you define the Trace tag(by default it is defined in Release build) and you build the project( in release build), those lines containing the Trace related statements are built into your binary. So when you run the release builds, those lines will always be hit.
But MSDN says, 'Trace is enabled in both release builds and debug builds. This allows an end user to turn on tracing to help identifiy the problem without the program having to be recompiled.
I just don't understand turn on here, to me whether the Trace line is hit or not is determined at the compile time(not the run time), the end user have NO choice to turn it on or off. That is it's always ON in release build(by default).
Am I wrong?
Thanks,
Jazz
I have a question about trace as MSDN seems confuses me.(http://msdn.microsoft.com/library/d...tml/frlrfSystemDiagnosticsTraceClassTopic.asp).
My answer to my question is NO, as it's decided at compile time.
Basically, from what I understand is if you define the Trace tag(by default it is defined in Release build) and you build the project( in release build), those lines containing the Trace related statements are built into your binary. So when you run the release builds, those lines will always be hit.
But MSDN says, 'Trace is enabled in both release builds and debug builds. This allows an end user to turn on tracing to help identifiy the problem without the program having to be recompiled.
I just don't understand turn on here, to me whether the Trace line is hit or not is determined at the compile time(not the run time), the end user have NO choice to turn it on or off. That is it's always ON in release build(by default).
Am I wrong?
Thanks,
Jazz