断点不适用于Visual Studio 2013(编码的UI测试生成器)c# [英] Breakpoint not working with Visual Studio 2013 (Coded UI Test Builder) c#

查看:97
本文介绍了断点不适用于Visual Studio 2013(编码的UI测试生成器)c#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮忙!

我正在使用Visual Studio测试生成器并在CodedUITtest1.cs中解决一些c#代码问题。我在脚本中设置了断点,断点(F9)被完全忽略。 有关断点的原因何时无效?

I'm working with Visual Studio test Builder and trouble-shooting some c# code in CodedUITtest1.cs. I'm setting breakpoints through out the script and the breakpoints (F9) are being completely ignored.  Any suggestions why breakpoints are not working?

我查看过论坛上的先前帖子,一个适用的解决方案是尝试工具 - >导入和导出设置。我尝试了但仍然无效。

I looked at previous posts on the Forum and one applicable solution was to try Tools -> Import and Export settings. I tried that but still does not work.

请指教!

谢谢,

Tom

Thomas Auriemma

Thomas Auriemma

推荐答案

嗨汤姆,

你如何运行 设置断点后的Coded UI测试?

How do you run  your Coded UI Test after setting breakpoints?

在调试代码时,断点将起作用。

The breakpoints will work when you debug your code.

如果您通过右键运行编码的UI测试 - 单击Coded UI Test方法并选择"Run Tests",它不会命中断点,因为它直接运行测试方法,而不是调试代码。

If you run your Coded UI Test through right-click the Coded UI Test method and choose "Run Tests", it will not hit the breakpoints because it is running the test method directly, not debug the code.

所以请选择调试你的编码的UI测试方法通过右键单击Test方法并选择"Debug Tests";这将让你的Visual Studio达到断点。

So please choose debug your Coded UI Test method through right-click the Test method and choose "Debug Tests" which will let your Visual Studio hit the breakpoints.

之前是否有效?

如果之前有效,请检查您是否为Visual Studio安装了任何第三部分扩展。您可以在
安全模式下运行Visual Studio确保它是由第三部分扩展引起的。

If it worked before, please check whether you have installed any third part extensions for your Visual Studio. You could run your Visual Studio in safe mode to make sure it is caused by third part extensions or not.

如果它之前不起作用,我建议你修复Visual Studio以检查安装时是否有任何安装问题。

If it doesn't work before, I suggest you repair your Visual Studio to check whether there has any installation issue when installing.

最好的问候,

Weiwei

Best Regards,
Weiwei


这篇关于断点不适用于Visual Studio 2013(编码的UI测试生成器)c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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