Cannot debug tests in project targeting .Net 3.5

29 views
Skip to first unread message

Pete Smith

unread,
Sep 29, 2013, 7:14:46 AM9/29/13
to machin...@googlegroups.com
Hi there,

I am experiencing an issue where by although I am able to run all my tests fine and get meaningful results, I cannot step into them or do any kind of debugging... the debugger appears to start successfully but it does not break on any exceptions, nor are any breakpoints hit. I know the tests are still executing as I still see what I would expect in the output window in Visual Studio. If I change the target framework up to v4.0, the problem is no longer encountered.

I am using the latest Nuget packages as of this morning, and I have tried this in both VS 2012 and 2013, and through both NCrunch and Resharper 8... all checked\updated to latest versions also.


Pete

Alexander Groß

unread,
Sep 29, 2013, 4:46:40 PM9/29/13
to machin...@googlegroups.com
That's interesting. I just tried to reproduce with a new 3.5 class library project containing this piece of code:

```
using System;

using Machine.Specifications;

namespace ClassLibrary1
{
  public class Class1
  {
    It should_observation =
      () =>
      {
        Console.WriteLine("dd");
      };
  }
}
```

I placed a breakpoint in the Console.WriteLine line and started debugging with ReSharper 8.0.1. And it worked. Can you please confirm that not even this simple spec is working for you?

Beste Grüße,

Alex
--
Alexander Groß
http://therightstuff.de/


--
You received this message because you are subscribed to the Google Groups "machine_users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to machine_user...@googlegroups.com.
To post to this group, send email to machin...@googlegroups.com.
Visit this group at http://groups.google.com/group/machine_users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages