Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…- Attach to Process and command “Step over”

Conditions were wrong if debugger was attached, but no solution opened.
  • Loading branch information
siegfriedpammer committed Jun 30, 2012
1 parent 9345aa7 commit 76b4fe6
Showing 1 changed file with 50 additions and 40 deletions.
90 changes: 50 additions & 40 deletions src/Main/Base/Project/ICSharpCode.SharpDevelop.addin
Expand Up @@ -1059,25 +1059,30 @@
</Condition>

<Condition name="DebuggerSupports" debuggersupports = "Stepping">
<Condition name = "SolutionOpen" action = "Disable">
<Condition name="DebuggerSupports" debuggersupports = "Start">
<ToolbarItem id = "SteppingSeparator" type = "Separator" />
<ToolbarItem id = "Step over"
icon = "Icons.16x16.Debug.StepOver"
tooltip = "${res:XML.MainMenu.DebugMenu.StepOver.Description}"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepDebuggingCommand"/>
<ToolbarItem id = "Step into"
icon = "Icons.16x16.Debug.StepInto"
tooltip = "${res:XML.MainMenu.DebugMenu.StepInto.Description}"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepIntoDebuggingCommand"/>
<Condition name="IsProcessRunning" isdebugging = "True">
<ToolbarItem id = "Step out"
icon = "Icons.16x16.Debug.StepOut"
tooltip = "${res:XML.MainMenu.DebugMenu.StepOut.Description}"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepOutDebuggingCommand"/>
</Condition>
<ComplexCondition action="Disable">
<Or>
<Condition name = "IsProcessRunning" isdebugging="True" isprocessrunning="False" />
<And>
<Condition name="DebuggerSupports" debuggersupports = "Start" />
<Condition name = "SolutionOpen" />
</And>
</Or>
<ToolbarItem id = "SteppingSeparator" type = "Separator" />
<ToolbarItem id = "Step over"
icon = "Icons.16x16.Debug.StepOver"
tooltip = "${res:XML.MainMenu.DebugMenu.StepOver.Description}"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepDebuggingCommand"/>
<ToolbarItem id = "Step into"
icon = "Icons.16x16.Debug.StepInto"
tooltip = "${res:XML.MainMenu.DebugMenu.StepInto.Description}"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepIntoDebuggingCommand"/>
<Condition name="IsProcessRunning" isdebugging = "True" isprocessrunning="False" action="Disable">
<ToolbarItem id = "Step out"
icon = "Icons.16x16.Debug.StepOut"
tooltip = "${res:XML.MainMenu.DebugMenu.StepOut.Description}"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepOutDebuggingCommand"/>
</Condition>
</Condition>
</ComplexCondition>
</Condition>

<ToolbarItem id = "ChooseConfigurationSeparator" type = "Separator"/>
Expand Down Expand Up @@ -1692,28 +1697,33 @@
</Condition>

<Condition name="DebuggerSupports" debuggersupports = "Stepping">
<Condition name = "SolutionOpen" action = "Disable">
<Condition name="DebuggerSupports" debuggersupports = "Start">
<MenuItem id = "BeforeSteppingSeparator" type = "Separator" />
<MenuItem id = "Step over"
label = "${res:XML.MainMenu.DebugMenu.StepOver}"
icon = "Icons.16x16.Debug.StepOver"
shortcut = "F10"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepDebuggingCommand"/>
<MenuItem id = "Step into"
label = "${res:XML.MainMenu.DebugMenu.StepInto}"
icon = "Icons.16x16.Debug.StepInto"
shortcut = "F11"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepIntoDebuggingCommand"/>
<Condition name="IsProcessRunning" isdebugging = "True">
<MenuItem id = "Step out"
label = "${res:XML.MainMenu.DebugMenu.StepOut}"
icon = "Icons.16x16.Debug.StepOut"
shortcut = "Shift|F11"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepOutDebuggingCommand"/>
</Condition>
<ComplexCondition action="Disable">
<Or>
<Condition name = "IsProcessRunning" isdebugging="True" isprocessrunning="False" />
<And>
<Condition name="DebuggerSupports" debuggersupports = "Start" />
<Condition name = "SolutionOpen" />
</And>
</Or>
<MenuItem id = "BeforeSteppingSeparator" type = "Separator" />
<MenuItem id = "Step over"
label = "${res:XML.MainMenu.DebugMenu.StepOver}"
icon = "Icons.16x16.Debug.StepOver"
shortcut = "F10"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepDebuggingCommand"/>
<MenuItem id = "Step into"
label = "${res:XML.MainMenu.DebugMenu.StepInto}"
icon = "Icons.16x16.Debug.StepInto"
shortcut = "F11"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepIntoDebuggingCommand"/>
<Condition name="IsProcessRunning" isdebugging = "True" isprocessrunning="False" action="Disable">
<MenuItem id = "Step out"
label = "${res:XML.MainMenu.DebugMenu.StepOut}"
icon = "Icons.16x16.Debug.StepOut"
shortcut = "Shift|F11"
class = "ICSharpCode.SharpDevelop.Project.Commands.StepOutDebuggingCommand"/>
</Condition>
</Condition>
</ComplexCondition>
</Condition>

<MenuItem id = "ToggleBreakpointSeparator" type = "Separator" />
Expand Down Expand Up @@ -2362,6 +2372,6 @@
</Path>

<Path name = "/SharpDevelop/Workbench/ProjectBehaviors">

</Path>
</AddIn>

0 comments on commit 76b4fe6

Please sign in to comment.