If you get the cannot start debugging of class library project error when trying to debug a VSIX project, do the following.
Go to project -> properties -> debug - select start ext. program and enter
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe
Then goto command line arguments and add
Save and you'll be ready to debug.