I really like FxCop. But in a debugging session it can be useful to save time by temporarily disabling the code analysis. Sadly there is no global switch to turn it off and on again. So here is my approach:

Create a new text file in the directory C:\Users\{your user}\Documents\WindowsPowerShell named NuGet_profile.ps1 and add the following code:

Restart Visual Studio. Click the menu View | Other Windows | Package Manager Console. Now you can execute the following commands:

Enable-CodeAnalysis
Disable-CodeAnalysis