Note that there are some explanatory texts on larger screens.

plurals
  1. POVisual Studio Debugging Issue with Resharper/Nunit
    primarykey
    data
    text
    <p>I am having a very frustrating problem in Visual Studio. I am using Resharper, and writing tests in Nunit.</p> <p>If I set a breakpoint, it does get hit, however Step In/Over and Continue do not work, and the test never finishes. Even if I set two break points, continuing won't hit the second. If I debug a test without a breakpoint, it finishes fine. </p> <p>Also, often and intermittently, when I try to debug a test by setting a break point, I can't evaluate the contents of variables, but instead see this message:</p> <p><code>Function evaluation disabled because a previous function evaluation timed out. You must continue execution to reenable function evaluation.</code> </p> <p>I am using Visual Studio 2010.</p> <p>Please let me know if you have any ideas of what to look at... I have scoured the web, but without any luck.</p> <p>Happy to provide further information if needed.</p> <p><strong>EDIT - Example of method</strong></p> <p><em>Test:</em></p> <pre><code>[Test] public void OneRowAddedToSourceData() { //Factory just returns System.Data.DataTable with correct columns. var sourceData = new DataTableContainerFactory().GetTargetTableContainer(DataTypeNames.EventSharedEnd); //GetRow just returns a populated row. var row = GetRow(sourceData, 123456, 123,60, 31); sourceData.DataTable.Rows.Add(row); Assert.AreEqual(1, sourceData.DataTable.Rows.Count); } </code></pre> <p>When I set a break point on the Assert statement, and try to evaluate the data table I get this problem.</p> <p><strong>UPDATE 2!</strong> So, I have narrowed this problem down to Resharper Debugging. I changed a test class to MSTest rather than NUnit, but still got both the above problems when debugging with Resharper. However, when I ran the tests with the built in VS MSTest test runner, ALL the problems had gone!</p> <p>Now I much prefer using NUnit and Resharper, so I would be very happy if someone could point me at a setting that will allow Resharper to debug properly!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload