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

Commit fee1c3c

Browse files
Merge pull request #432 from linquize/add-watch-expression
Changes to Add watch expression
2 parents cd8c6c3 + 5fbea02 commit fee1c3c

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

src/AddIns/Debugger/Debugger.AddIn/Debugger.AddIn.addin

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@
7171
label = "${res:MainWindow.Windows.Debug.AddExpressionBreakpoint}"
7272
shortcut="Shift|F7"
7373
class = "Debugger.AddIn.AddExpressionBreakpointCommand"/>-->
74-
<MenuItem id="AddWatchExpression"
75-
insertafter="AddExpressionBreakpoint"
76-
label = "${res:MainWindow.Windows.Debug.AddWatchExpression}"
77-
shortcut="Ctrl|F7"
78-
class = "Debugger.AddIn.AddWatchExpressionCommand"/>
74+
<Condition name = "IsTextSelected" action="Disable">
75+
<MenuItem id="AddWatchExpression"
76+
insertafter="AddExpressionBreakpoint"
77+
icon = "Icons.16x16.WatchAdd"
78+
label = "${res:MainWindow.Windows.Debug.AddWatchExpression}"
79+
shortcut="Ctrl|F7"
80+
class = "Debugger.AddIn.AddWatchExpressionCommand"/>
81+
</Condition>
7982
</Path>
8083

8184
<Path name="/SharpDevelop/Pads/ClassBrowser/Toolbar">

0 commit comments

Comments
 (0)