VS 2008不能运行debug

安装完vs2008 (x64)后,运行时报如下错误:

”The Visual Studio Debugger did not load because of previous errors. For assistance, contact the package vendor. To attempt to load this package again, type ‘devenv /resetskippkgs’ at the command prompt.“

导致程序不能进行debug操作,解决方案如下(from stackoverflow)

After looking back and forth over the internet, coming across a lot of different answers, i finally managed to get this working. This was my solution:

  1. Close all open instances of Visual Studio.
  2. Open the Command Prompt in an Administrator context by navigating to Start\All Programs\Accessories, right-clicking Command Prompt and choosing Run as Administrator.
  3. Navigate to the install path of VS2008 – in my case (default on Vista x64) it was **C:\Program Files (x86)\Microsoft Visual Studio 2008 9.0\Common7\IDE**
  4. Run the command devenv /setup. It takes a little while, but be patient.
  5. Start Visual Studio.

After following these steps, the setup is reset to default, so you’ll have to reconfigure all startup options, fonts for the text editors etc. This could possibly be helped by running devenv /resetskippkgs instead, however it did not on my machine.

经过上述操作,测试可以有效解决该问题。