Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 23, 2012 04:17 AM by Dino He - MSFT
Member
202 Points
102 Posts
Mar 21, 2012 10:58 PM|LINK
Hi,
I am using the integrated test feature. I set breakpoints in unit tests. Then Test > Debug > All Tests in Solution. The tests run but execution doesn't break at the breakpoints. How can I fix it?
Bill
All-Star
16797 Points
2608 Posts
MVP
Mar 21, 2012 11:43 PM|LINK
Sometimes selecting clean from the build menu fixes issues like this. You should clean the whole solution
Mar 22, 2012 05:21 PM|LINK
Tried it. Still not breaking. Here are the Attributes for a test proc.
[TestMethod()]
[HostType("ASP.NET")]
[AspNetDevelopmentServerHost("C:\\temp\\AdrTrainingSln\\AdrTrainingApp", "/")]
[UrlToTest("http://localhost:4640/")]
public void DecryptTest()
Star
8068 Points
1023 Posts
Microsoft
Mar 23, 2012 04:17 AM|LINK
Hi
Please check out these article:
http://msdn.microsoft.com/en-us/library/ms243172.aspx
http://msdn.microsoft.com/en-us/library/ms182484.aspx
It should helpful.
Thanks
swartzbill20...
Member
202 Points
102 Posts
breakpoints don't work in tests
Mar 21, 2012 10:58 PM|LINK
Hi,
I am using the integrated test feature. I set breakpoints in unit tests. Then Test > Debug > All Tests in Solution. The tests run but execution doesn't break at the breakpoints. How can I fix it?
Bill
Ken Tucker
All-Star
16797 Points
2608 Posts
MVP
Re: breakpoints don't work in tests
Mar 21, 2012 11:43 PM|LINK
Sometimes selecting clean from the build menu fixes issues like this. You should clean the whole solution
Space Coast .Net User Group
swartzbill20...
Member
202 Points
102 Posts
Re: breakpoints don't work in tests
Mar 22, 2012 05:21 PM|LINK
Tried it. Still not breaking. Here are the Attributes for a test proc.
[TestMethod()]
[HostType("ASP.NET")]
[AspNetDevelopmentServerHost("C:\\temp\\AdrTrainingSln\\AdrTrainingApp", "/")]
[UrlToTest("http://localhost:4640/")]
public void DecryptTest()
Dino He - MS...
Star
8068 Points
1023 Posts
Microsoft
Re: breakpoints don't work in tests
Mar 23, 2012 04:17 AM|LINK
Hi
Please check out these article:
http://msdn.microsoft.com/en-us/library/ms243172.aspx
http://msdn.microsoft.com/en-us/library/ms182484.aspx
It should helpful.
Thanks
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework