Developer OneNote

Emma's OneNote for Microsoft Windows, Office and Programming

Tag: Code Analysis

Find Dead Code

27 March, 2010 | Category: Development, Tips and Tricks, Tutorial

Dead code means block of code that is not reachable in application. They can cause noisy in code debugging and confuse developers. Sometimes I might spend a few hours to figure out why a breakpoint never hit.

Most of code defect is result of old function no longer used and referenced. Remove them will prevent developers from wasting time investigating wrong code. Thanks to FxCop in visual studio, now finding dead code is pretty straight forward. Read more »