debug flag at run-time?

  • Thread starter Thread starter Daniel P.
  • Start date Start date
D

Daniel P.

How can I figure out at run-time if he code that runs is a debug or a
release build?

Thanks!
 
Why not create your own? I don't think there's any other easier way.

#if DEBUG
internal static readonly bool debug=true;
#else
internal static readonly bool debug=false;
#endif
 
Thanks!

Richard A. Lowe said:
Why not create your own? I don't think there's any other easier way.

#if DEBUG
internal static readonly bool debug=true;
#else
internal static readonly bool debug=false;
#endif
 
Back
Top