You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.0 KiB
62 lines
2.0 KiB
// <file> |
|
// <copyright see="prj:///doc/copyright.txt"/> |
|
// <license see="prj:///doc/license.txt"/> |
|
// <owner name="David Srbecký" email="dsrbecky@gmail.com"/> |
|
// <version>$Revision$</version> |
|
// </file> |
|
|
|
using System.Windows.Forms; |
|
using Debugger; |
|
using ICSharpCode.Core; |
|
using ICSharpCode.SharpDevelop.Services; |
|
|
|
namespace ICSharpCode.SharpDevelop.Gui.OptionPanels |
|
{ |
|
/// <summary> |
|
/// Panel for general debugging options |
|
/// </summary> |
|
public partial class DebuggingOptionsPanel : XmlFormsOptionPanel |
|
{ |
|
public DebuggingOptionsPanel() |
|
{ |
|
InitializeComponent(); |
|
foreach (Control ctl in Controls.GetRecursive()) { |
|
ctl.Text = StringParser.Parse(ctl.Text); |
|
} |
|
stepOverAllProperties.CheckedChanged += delegate { |
|
stepOverSingleLineProperties.Enabled = !stepOverAllProperties.Checked; |
|
stepOverFieldAccessProperties.Enabled = !stepOverAllProperties.Checked; |
|
}; |
|
} |
|
|
|
public override void LoadPanelContents() |
|
{ |
|
DebuggingOptions opt = DebuggingOptions.Instance; |
|
|
|
enableJustMyCode.Checked = opt.EnableJustMyCode; |
|
stepOverNoSymbols.Checked = opt.StepOverNoSymbols; |
|
stepOverDebuggerAttributes.Checked = opt.StepOverDebuggerAttributes; |
|
stepOverAllProperties.Checked = opt.StepOverAllProperties; |
|
stepOverSingleLineProperties.Checked = opt.StepOverSingleLineProperties; |
|
stepOverFieldAccessProperties.Checked = opt.StepOverFieldAccessProperties; |
|
} |
|
|
|
public override bool StorePanelContents() |
|
{ |
|
DebuggingOptions opt = DebuggingOptions.Instance; |
|
|
|
opt.EnableJustMyCode = enableJustMyCode.Checked; |
|
opt.StepOverNoSymbols = stepOverNoSymbols.Checked; |
|
opt.StepOverDebuggerAttributes = stepOverDebuggerAttributes.Checked; |
|
opt.StepOverAllProperties = stepOverAllProperties.Checked; |
|
opt.StepOverSingleLineProperties = stepOverSingleLineProperties.Checked; |
|
opt.StepOverFieldAccessProperties = stepOverFieldAccessProperties.Checked; |
|
|
|
Process proc = WindowsDebugger.CurrentProcess; |
|
if (proc != null) { |
|
proc.Debugger.ResetJustMyCodeStatus(); |
|
} |
|
return true; |
|
} |
|
} |
|
}
|
|
|