Hi Duc.M.Bui,
The code snippet inside #if DEBUG will only runs when the app is under debug. And the code inside will not be compiled in IL when release.
See the remark section of
DebugSettings class:
Not all modes enabled by DebugSettings require that a debugger is attached. For example, the frame-rate counter associated with
EnableFrameRateCounter will appear in an app that runs with that setting even if you activate
it as a tile without the debugger.
Don't leave any DebugSettings properties explicitly set in your production code.
This should explain to you everything :) hope helps.
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.