在Delphi中,每当我的程序变得没有响应时,我就习惯于按F12来查看主线程正在做什么,主要用于堆栈跟踪,有时也用于局部变量。
现在我在玩SharpDevelop,看不到任何类似的东西。这是完全可能的吗?
发布于 2016-08-09 16:00:59
SharpDevelop中没有用于调试中断的预定义键盘快捷键。可以从Debug菜单中选择Debug - Break来访问它。您也可以按主工具栏中的暂停按钮。
如果需要键盘快捷键,则需要编辑ICSharpCode.SharpDevelop.addin文件并将快捷键添加到“中断”菜单中。下面显示了不带键盘快捷键的Break菜单项和快捷键为F5的Continue菜单项。
<Condition name="DebuggerSupports" debuggersupports = "ExecutionControl">
<MenuItem id = "ExecutionControlSeparator" type = "Separator" />
<Condition name="IsProcessRunning" isprocessrunning = "True" isdebugging = "True" action = "Disable">
<MenuItem id = "Break"
label = "${res:XML.MainMenu.DebugMenu.Break}"
icon = "Icons.16x16.Debug.Break"
class = "ICSharpCode.SharpDevelop.Project.Commands.BreakDebuggingCommand"/>
</Condition>
<Condition name="IsProcessRunning" isprocessrunning = "False" isdebugging = "True" action = "Disable">
<MenuItem id = "Continue"
label = "${res:XML.MainMenu.DebugMenu.Continue}"
icon = "Icons.16x16.Debug.Continue"
shortcut = "F5"
class = "ICSharpCode.SharpDevelop.Project.Commands.ContinueDebuggingCommand"/>
</Condition>
</Condition>因此,如果需要,可以通过编辑ICSharpCode.SharpDevelop.addin文件为Break菜单项添加新的快捷方式属性。
https://stackoverflow.com/questions/38836291
复制相似问题