1. Ensure the debug symbols (.pdb) of your rule assembly is located in the same directory as the rule assembly itself 2. Open your FxCop project that contains your custom rule 3. Open your custom rules project 4. In Visual Studio, Choose Debug -> Attach To Process 5. In the Attach to Process dialog, select FxCop.exe in the Available Processes 6. Click Attach 7. In Visual Studio set a breakpoint in the rule you want to debug 8. In FxCop, click Analyze
My first try did not copy pdb file to FxCop.exe "Rules Directory" thus failed. After copied it, it works.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.