Код: Выделить всё
#if DEBUG
MessageBox.Show("Attach debugger", "Title", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK);
#endif
Подробнее здесь: https://stackoverflow.com/questions/795 ... r-attached
Код: Выделить всё
#if DEBUG
MessageBox.Show("Attach debugger", "Title", MessageBoxButton.OK, MessageBoxImage.Information, MessageBoxResult.OK);
#endif