When creating "debugging", the DEBUG preprocessor variable is defined. So you can do this:
public void MyFunc()
{
#if DEBUG
#endif
}
and it will be ignored by the compiler when switching to Release mode.
, , , "#define PERFORMANCE_TESTING", , , .
#define PERFORMANCE_TESTING
public void MyFunc()
{
#if PERFORMANCE_TESTING
#endif
}