本文介绍了是否可以将快捷方式分配给“具体步骤"?在Visual Studio 2012 C ++中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在Visual Studio(使用VS2012)中调试C ++时发现了具体步骤"选项,这真的很有用,特别是在有很多构造函数,智能指针等的情况下.

I recently discovered the "Step into Specific" option while debugging C++ in Visual Studio (using VS2012) which is really helpful especially if there are many constructors, smart pointers, etc.

但是,由于我主要使用键盘(F9,F10,F11,Shift-F11)进行调试,所以我想知道是否有可能以某种方式将此功能添加到键盘库中吗?

However, as I'm mostly debugging using the keyboard (F9, F10, F11, Shift-F11) I wonder whether it was possible to add this function to the keyboard repertoire somehow ?

或者,因为我通常在类似的功能上使用进入特定步骤"命令

Alternatively, as I mostly use the "step into specific" command on functions like

void doSomethingInterestingWith(sharedPtrToDb->getEltFromDb(EltId(atoi(key)))) 

我想知道是否可以创建直接进入外部函数(doSomethingInterestingWith())的快捷方式

I wonder whether it is possible to create a shortcut that just goes directly into the outer function (doSomethingInterestingWith())

推荐答案

有一个 Debug.StepIntoSpecific 命令,带有默认快捷方式Shift+Alt+F11,该快捷方式显示了一个上下文菜单,其中包含您可以选择使用的功能键盘.

There is a Debug.StepIntoSpecific command with the default shortcut Shift+Alt+F11 which shows a context menu with functions that you can select using keyboard.

这篇关于是否可以将快捷方式分配给“具体步骤"?在Visual Studio 2012 C ++中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 17:20