How can I step directly into a function without stepping into intermediate functions for parameters?

筅森魡賤 提交于 2021-02-05 08:36:08

问题


In Visual Studio 2013 (or any version really) and I am debugging a C++ project, I want to be able to bypass stepping into intermediate functions that are called due to parameters being passed into the function of interest.

How can I bypass stepping into these intermediate functions (not of interest directly) and just go straight to my function of interest?

For example, let's say I have a function that passes in a list of objects and another parameter that is a string. If I set a breakpoint and click the Step Into button or F8 then it is actually first steps into the functions necessary to get the list of objects ready as well as the string object. I don't care about these intermediate functions for the setup and I just want to go directly to my function of interest. Is there a setting to be able to do this?


回答1:


Right Click -> Step Into Specific -> pick the function you want to step into.



来源:https://stackoverflow.com/questions/29152299/how-can-i-step-directly-into-a-function-without-stepping-into-intermediate-funct

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!