问题描述
我无法使用F10或F11单步执行ASP.NET MVC代码。有什么想法吗?
$
I can't step through my ASP.NET MVC code using F10 or F11. Any ideas?
推荐答案
会不会请分享一下我们的更多细节?
Would please share us more details of it?
>>我无法使用F10或F11单步执行ASP.NET MVC代码。有什么想法吗?
>> I can't step through my ASP.NET MVC code using F10 or F11. Any ideas?
要使用F10进行切换并使用F11进入,但是,如果您的意思是步入方法,则取决于其类型。某些类封装在dll中,然后F11将无法在没有pdb文件的情况下进入方法。
To step over by using F10 and step into by using F11, however, if your meaning is to step into a method, it will depend on its type. Some class is encapsulated in dll then the F11 will not work as stepping into the method without the pdb files.
请确保该方法可以进入,您可以检查它是否有相应的pdb文件:
运行调试 - >调试 - > 窗口 - >模块
Please make sure the method could be stepped into, and you could check if it has the corresponding pdb file:Run debug -> Debug -> Window -> Modules
我使用的是VS2015 update3,以及F10和F11在MVC项目中工作正常,同时在我身边进行调试。除了发布之外,请确保它在
调试模式中。
I am using VS2015 update3, and the F10 and F11 work fine in MVC project while debugging in my side. And please make sure it's indebug mode, other than release.
祝你好运,
Fletcher
这篇关于使用F10调试无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!