There’s a built-in command line switch devenv.exe /log to log Visual Studio activity, e.g. which packages got loaded, etc.
This blog post has moved to http://saraford.net/2008/11/27/did-you-know-theres-a-way-to-have-visual-studio-log-its-activity-for-troubleshooting-366/