Visual Studio 中的 F10 和 F11 键有什么区别? [英] What is the difference between F10 and F11 keys in visual studio?

查看:46
本文介绍了Visual Studio 中的 F10 和 F11 键有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 C# 新手.我遇到了一个断点并按下了 F10F11.

I'm new in C#. I hit a breakpoint and pressed F10 or F11.

应该使用哪个键来编译?

Which key should be use for compilation?

请帮帮我.你能解释一下这个键的作用吗?

Please help me out. Can you explain me what this keys does?

推荐答案

F10(跳过")不会进一步下降到调用堆栈中.它移动到当前函数的下一行.

F10 ("step over") does not descend any further into the call stack. It moves to the next line of the current function.

F11(进入")深入到被调用的函数.

F11 ("step into") drills down into the function being called.

void function1()
{
    function2();
    function3();
}

如果您在 function2() 上遇到断点,F10 将前进到 function3() 行.F11 将前进到 function2 中的第一行.

If you hit a breakpoint on function2(), F10 will advance to the line function3(). F11 will advance to the first line inside function2.

这篇关于Visual Studio 中的 F10 和 F11 键有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆