简体   繁体   English

Visual Studio 2012中的单元测试步骤调试不准确的行步进

[英]Unit test step debugging in Visual Studio 2012 inaccurate line stepping

I have the issue when step debugging a unit test that the execution marker is jumping inaccurately over different lines of code. 在逐步调试单元测试时,执行标记在不同的代码行中跳跃不正确时,我遇到了问题。 I have the feeling that I had to fix this before but can't remember how to. 我觉得我以前必须解决此问题,但不记得要怎么做。

Does anyone have a solution to it? 有人对此有解决方案吗?

Fixed it by hand-modifying the .testsettings file in the solution directly and removing the AgentRule section. 通过直接在解决方案中手动修改.testsettings文件并删除AgentRule部分来解决此问题。

http://adamprescott.net/2013/01/18/vs2012-debugger-jumping-around-for-vs2010-unit-tests/ http://adamprescott.net/2013/01/18/vs2012-debugger-jumping-around-for-vs2010-unit-tests/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM