使用F10 / F11进行Visual Studio调试器的行为就像F5(运行) [英] Stepping through Visual Studio Debugger with F10/F11 behaves like F5 (Run)

查看:236
本文介绍了使用F10 / F11进行Visual Studio调试器的行为就像F5(运行)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试解决方案时,我一直遇到一个奇怪的Visual Studio(2010)问题,我希望有人对如何解决这个问题有一些想法。

I have been running into a strange Visual Studio (2010) issue when debugging the a solution and I’m hoping someone has some thoughts on how to fix this issue.

有时,在调试过程中,当点击一个断点并开始逐步执​​行(F10或F11)时,所看到的行为就是F5(运行),立即从调试器跳出并显示页面。如果设置了一个断点,它会运行到那个,但是从那里它将运行结束(或下一个断点)。

At times, during debugging when hitting a break point and start stepping through (F10 or F11) the behavior seen is that of F5 (run), immediately jumping out of the debugger with the page rendered. If a break point is set it’ll run to that but from there it will run to end (or next break point).

我发现唯一的停止这个行为(一段时间)是关闭Visual Studio,关闭IIS,关闭IE(是的,必须这样做,似乎保持引用),然后去清除所有临时ASP.NET文件中发现的所有框架文件夹(C:\Windows\Microsoft.NET)。

The only thing I’ve found to stop this behavior (for a short while) is to close Visual Studio, shutdown IIS, close out IE (yeah, have to do this, seems to hold references) and then go and purge all of the Temporary ASP.NET Files found in all Framework folders (C:\Windows\Microsoft.NET).

这真的使调试和故障排除困难。对于可能导致此问题(以及如何修复)的任何想法?

This is really making debugging and troubleshooting difficult. Any thoughts on what might be causing this (and how to fix)?

推荐答案

我在Visual视图中遇到多线程调试问题Studio(我们使用VS 2008与C#代码)。有时调试器会挂起,其他时候会继续调试会话。

I've had issues with multithreaded debugging in Visual Studio (we use VS 2008 with C# code). Sometimes the debugger would hang, and other times it would just continue the debugging session.

我终于找到了解决问题的解决方法。我选择Visual Studio工具/选项,调试,常规和禁用调用变量窗口中的对象的字符串转换函数(仅限C#和JavaScript)。

I finally found a workaround for my issues. I selected Visual Studio Tools/Options, Debugging, General, and disabled "Call string conversion function on objects in variables windows (C# and JavaScript only)".

互联网帖子也建议取消勾选启用属性评估和其他隐式调用,但我并不需要这样做。

Internet posts also suggested un-checking "Enable property evaluation and other implicit calls", but I didn’t need to do that in my case.

这篇关于使用F10 / F11进行Visual Studio调试器的行为就像F5(运行)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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