步进代码时找不到ExecutionTimer.cs

Cod*_*elp 16 c# xunit.net

我正在使用XUnit框架编写一些测试,并且必须使用通过dll引用的一些外部代码.

当我尝试进入方法调用helper.GetEntity()时,我得到以下窗口并且执行存在.

[Fact]
public void PassingTest()
{

    var datapointJson = File.ReadAllText(@"sample.json");
    dynamic datapointObject = JsonConvert.DeserializeObject(datapointJson);

    // This is referenced from a different project in the same solution.
    var helper = new Helper.Actions();
    var studentEntity = helper.GetEntity("tom");
}
Run Code Online (Sandbox Code Playgroud)

找不到Execution.cs

有谁知道为什么会这样?

问候.

pau*_*ulk 8

(发布@ camilo-terevinto的评论作为答案)

在Visual Studio中打开"启用我的代码" 工具| 调试| 一般.

在此输入图像描述

  • 我刚刚用 VS2017 和 Resharper 2018.3.4 得到了这个。检查“仅启用我的代码”没有帮助。它已启用,我再次尝试禁用它,然后重新启用它并再次尝试,但它仍然停止。最近有没有其他人看到这个? (4认同)
  • @JohanBergens 实际上我设法解决了它。看我下面的回答 (2认同)