Skip to content

Commit af0894c

Browse files
authored
Merge pull request #8 from SergioMurru/development
Automatic attachment of the debugger at launch when using the Debug version
2 parents 9076806 + b13db5a commit af0894c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

AnalyzeInExcel/App.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ public MessageBoxResult ShowMessageQuestion(string message)
6262

6363
protected override void OnStartup(StartupEventArgs e)
6464
{
65+
66+
#if DEBUG
67+
System.Diagnostics.Debugger.Launch();
68+
#endif
69+
6570
// Store request to access options
6671
InitializeOptionRequested();
6772

0 commit comments

Comments
 (0)