Are there any concurrency debugging tools for C#.NET in VS2010

On the project I am working on at the moment we have an unknown number of flickering tests which fail at varying rates (anywhere from every-other run to once every 5000 runs) which has led us to believe we have some serious Heisenbugs to resolve. Most of the time including trace statements in the code change the timing enough to eliminate these errors, or at least make them occur less often, but obviously this is not a valid bug fix.

We are wondering if there are any tools similair to CHESS (http://research.microsoft.com/en-us/projects/chess/download.aspx) that work in/with Visual Studio 2010 to stress test applications and detect potential race conditions and deadlocks?


Within Visual Studio 2010 (not sure which editions exactly) you can create a new profiling session with the "Concurrency" option. This should detect the deadlocks you're looking for. You can then profile a unit test to automate your many runs.

Couldn't find many images of the results but here's an example example http://i.msdn.microsoft.com/ee336027.Shafi_Figure2(en-us,MSDN.10).png


Another tool is from Microsoft Research only, you can download it from Codeplex - chesstool.codeplex.com. It supports .Net 4.0 libraries, next version of Chess, but I don't know you are able to use it.

链接地址: http://www.djcxy.com/p/54866.html

上一篇: 对象内的依赖关系

下一篇: VS2010中是否有针对C#.NET的并发调试工具?