diff --git a/Debugger/ILSpy.Debugger/DebuggerSettings.cs b/Debugger/ILSpy.Debugger/DebuggerSettings.cs index 1a9e6617f..9b2955a1c 100644 --- a/Debugger/ILSpy.Debugger/DebuggerSettings.cs +++ b/Debugger/ILSpy.Debugger/DebuggerSettings.cs @@ -24,6 +24,7 @@ namespace ICSharpCode.ILSpy.Debugger public class DebuggerSettings : INotifyPropertyChanged { bool showWarnings = true; + bool askArguments = true; bool debugWholeTypesOnly = false; /// @@ -41,6 +42,20 @@ namespace ICSharpCode.ILSpy.Debugger } } + /// + /// Ask for arguments and working directory before executing a process. + /// + [DefaultValue(true)] + public bool AskForArguments { + get { return askArguments; } + set { + if (askArguments != value) { + askArguments = value; + OnPropertyChanged("AskForArguments"); + } + } + } + /// /// True, if debug only whole types; otherwise false (debug only methods and properties). /// Default value is false. diff --git a/Debugger/ILSpy.Debugger/ILSpy.Debugger.csproj b/Debugger/ILSpy.Debugger/ILSpy.Debugger.csproj index 80f4efa04..1921b8dfd 100644 --- a/Debugger/ILSpy.Debugger/ILSpy.Debugger.csproj +++ b/Debugger/ILSpy.Debugger/ILSpy.Debugger.csproj @@ -45,6 +45,7 @@ 3.5 + 4.0 @@ -106,6 +107,10 @@ AttachToProcessWindow.xaml Code + + ExecuteProcessWindow.xaml + Code + @@ -118,6 +123,7 @@ + diff --git a/Debugger/ILSpy.Debugger/UI/ExecuteProcessWindow.xaml b/Debugger/ILSpy.Debugger/UI/ExecuteProcessWindow.xaml new file mode 100644 index 000000000..031927303 --- /dev/null +++ b/Debugger/ILSpy.Debugger/UI/ExecuteProcessWindow.xaml @@ -0,0 +1,113 @@ + + + + + + + +